Index: firmware/App/Modes/Dialysis.c =================================================================== diff -u -r7cf04dc00d1242aba62f3cd4e4bcb19f1e83ebc6 -r03c434e902b640c4093cfc96ceaeb93940c15340 --- firmware/App/Modes/Dialysis.c (.../Dialysis.c) (revision 7cf04dc00d1242aba62f3cd4e4bcb19f1e83ebc6) +++ firmware/App/Modes/Dialysis.c (.../Dialysis.c) (revision 03c434e902b640c4093cfc96ceaeb93940c15340) @@ -1307,12 +1307,19 @@ } // TODO Set proper limits and use separate Alarm Number + // TODO How does this alarm get cleared? if ( driftDiff > LOAD_CELL_PRIMARY_BACKUP_MAX_ALLOWED_DRIFT_GRAMS ) { //checkPersistentAlarm( ALARM_ID_DG_LOAD_CELL_PRIMARY_BACKUP_DRIFT_OUT_OF_RANGE, isDriftOutOfRange, driftDiff, // LOAD_CELL_PRIMARY_BACKUP_MAX_ALLOWED_DRIFT_GRAMS ); SET_ALARM_WITH_2_F32_DATA( ALARM_ID_DG_LOAD_CELL_PRIMARY_BACKUP_DRIFT_OUT_OF_RANGE, loadCellCurrentDrift, loadCellPreviousDrift ) } + + // TODO remove this debug output + // Send a comma delimited debug message with drift data + U08 tempCharBuffer[ 64 ]; + sprintf( tempCharBuffer, "LoadCellOldDrift,%3.2f,LoadCellNewDrift,%3.2f", loadCellPreviousDrift, loadCellCurrentDrift ); + broadcastData( MSG_ID_HD_DEBUG_EVENT, COMM_BUFFER_OUT_CAN_HD_BROADCAST, tempCharBuffer, strlen( tempCharBuffer ) ); } Index: firmware/App/Services/SystemCommMessages.h =================================================================== diff -u -r6e86723c766c0097c9867af984c0c7e82802537a -r03c434e902b640c4093cfc96ceaeb93940c15340 --- firmware/App/Services/SystemCommMessages.h (.../SystemCommMessages.h) (revision 6e86723c766c0097c9867af984c0c7e82802537a) +++ firmware/App/Services/SystemCommMessages.h (.../SystemCommMessages.h) (revision 03c434e902b640c4093cfc96ceaeb93940c15340) @@ -74,9 +74,6 @@ // ACK MSG BOOL sendACKMsg( MESSAGE_T *message ); -// Serialize message -U32 serializeMessage( MESSAGE_T msg, COMM_BUFFER_T buffer, BOOL ackReq ); - // MSG_ID_DG_CHECK_IN void handleDGCheckIn( MESSAGE_T *message );