Index: firmware/App/Controllers/Pressures.c =================================================================== diff -u -r216bd924f989182e648ee5f33f4c91c43ac438ac -ra75923f40bea362b44fc082ce8eebde7bfa97c9a --- firmware/App/Controllers/Pressures.c (.../Pressures.c) (revision 216bd924f989182e648ee5f33f4c91c43ac438ac) +++ firmware/App/Controllers/Pressures.c (.../Pressures.c) (revision a75923f40bea362b44fc082ce8eebde7bfa97c9a) @@ -254,17 +254,17 @@ broadcastPressureSensorsData( roIn, roOut, drainIn, drainOut ); pressuresDataPublicationTimerCounter = 0; - #ifdef DEBUG_ENABLED - { - // TODO - temporary debug code - remove later - F32 lc1 = getLoadCellFilteredWeight(LOAD_CELL_A1); - F32 lc2 = getLoadCellFilteredWeight(LOAD_CELL_B1); - char debugPresStr[ 256 ]; +#ifdef DEBUG_ENABLED +{ + // TODO - temporary debug code - remove later + F32 lc1 = getLoadCellFilteredWeight(LOAD_CELL_A1); + F32 lc2 = getLoadCellFilteredWeight(LOAD_CELL_B1); + char debugPresStr[ 256 ]; - sprintf( debugPresStr, "RO: %5d, %5d, Drain: %5d, %5d, Loads: %6d, %6d\n", (S32)roIn, (S32)roOut, (S32)drainIn, (S32)drainOut, (S32)lc1, (S32)lc2 ); - sendDebugData( (U08*)debugPresStr, strlen(debugPresStr) ); - } - #endif + sprintf( debugPresStr, "RO: %5d, %5d, Drain: %5d, %5d, Loads: %6d, %6d\n", (S32)roIn, (S32)roOut, (S32)drainIn, (S32)drainOut, (S32)lc1, (S32)lc2 ); + sendDebugData( (U08*)debugPresStr, strlen(debugPresStr) ); +} +#endif } }