Index: firmware/App/Controllers/DGInterface.c =================================================================== diff -u -r7cf04dc00d1242aba62f3cd4e4bcb19f1e83ebc6 -r4f026c2e983dcb657a5c980f3572c812b9782ae6 --- firmware/App/Controllers/DGInterface.c (.../DGInterface.c) (revision 7cf04dc00d1242aba62f3cd4e4bcb19f1e83ebc6) +++ firmware/App/Controllers/DGInterface.c (.../DGInterface.c) (revision 4f026c2e983dcb657a5c980f3572c812b9782ae6) @@ -519,7 +519,7 @@ lgLoadCellReadingsTotal[ res ] += wt; lgFilteredReservoirWeightInGrams[ res ] = lgLoadCellReadingsTotal[ res ] / (F32)SIZE_OF_LARGE_LOAD_CELL_AVG; - wt = ( res == DG_RESERVOIR_1 ? res1Primary : res2Primary ); + wt = ( res == DG_RESERVOIR_1 ? res1Backup : res2Backup ); lgLoadCellBackupReadingsTotal[ res ] -= lgLoadCellBackupReadings[ res ][ lgLoadCellReadingsIdx ]; lgLoadCellBackupReadings[ res ][ lgLoadCellReadingsIdx ] = wt; lgLoadCellBackupReadingsTotal[ res ] += wt; Index: firmware/App/Controllers/DGInterface.h =================================================================== diff -u -r7cf04dc00d1242aba62f3cd4e4bcb19f1e83ebc6 -r4f026c2e983dcb657a5c980f3572c812b9782ae6 --- firmware/App/Controllers/DGInterface.h (.../DGInterface.h) (revision 7cf04dc00d1242aba62f3cd4e4bcb19f1e83ebc6) +++ firmware/App/Controllers/DGInterface.h (.../DGInterface.h) (revision 4f026c2e983dcb657a5c980f3572c812b9782ae6) @@ -34,7 +34,7 @@ #define DEFAULT_TARGET_FILL_FLOW_RATE_LPM 0.8F ///< Default target fill flow rate in L/min. #define DRAIN_RESERVOIR_TO_VOLUME_ML 0 ///< Drain reservoir to this volume (in mL) during treatment. -#define LOAD_CELL_PRIMARY_BACKUP_MAX_ALLOWED_DRIFT_GRAMS 10.0F ///< Reservoir load cell drift difference allowed +#define LOAD_CELL_PRIMARY_BACKUP_MAX_ALLOWED_DRIFT_GRAMS 100.0F ///< Reservoir load cell drift difference allowed /// DG Concentrate ratios data structure. typedef struct Index: firmware/App/Modes/Dialysis.c =================================================================== diff -u -r03c434e902b640c4093cfc96ceaeb93940c15340 -r4f026c2e983dcb657a5c980f3572c812b9782ae6 --- firmware/App/Modes/Dialysis.c (.../Dialysis.c) (revision 03c434e902b640c4093cfc96ceaeb93940c15340) +++ firmware/App/Modes/Dialysis.c (.../Dialysis.c) (revision 4f026c2e983dcb657a5c980f3572c812b9782ae6) @@ -1318,7 +1318,7 @@ // 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 ); + sprintf( tempCharBuffer, "LoadCellOldDrift,%3.3f,LoadCellNewDrift,%3.3f,Diff,%3.3f", loadCellPreviousDrift, loadCellCurrentDrift, driftDiff ); broadcastData( MSG_ID_HD_DEBUG_EVENT, COMM_BUFFER_OUT_CAN_HD_BROADCAST, tempCharBuffer, strlen( tempCharBuffer ) ); }