Index: firmware/App/Controllers/LoadCell.c =================================================================== diff -u -rc9a2e913b21980bb44a5418f6acf01a7fa77a9c9 -raf75afdbece4925ab5bf6f69355c2343a80852b8 --- firmware/App/Controllers/LoadCell.c (.../LoadCell.c) (revision c9a2e913b21980bb44a5418f6acf01a7fa77a9c9) +++ firmware/App/Controllers/LoadCell.c (.../LoadCell.c) (revision af75afdbece4925ab5bf6f69355c2343a80852b8) @@ -228,9 +228,9 @@ // Since there is a single alarm value for all 4 load cells the persistence check must be // executed if ANY of the load cell values are out of range. Only when all of the load // cells are in range should the persistence for the alarm be cleared. - weight = getLoadCellWeight( ii ); + weight = getLoadCellWeight( ( LOAD_CELL_ID_T) ii ); isCurrentLoadCellOut = ( ( weight < LOAD_CELL_MIN_ALLOWED_WEIGHT_GRAMS ) || ( weight > LOAD_CELL_MAX_ALLOWED_WEIGHT_GRAMS ) ? TRUE : FALSE ); - isLoadCellOutOfRange != isCurrentLoadCellOut; + isLoadCellOutOfRange |= isCurrentLoadCellOut; loadCellOutID = ( TRUE == isCurrentLoadCellOut ? ii : loadCellOutID ); loadcells[ ii ].loadCellVelocity_g_min = ( getLoadCellWeight( (LOAD_CELL_ID_T)ii ) -