diff --git a/Src/main.c b/Src/main.c index c8a6b84..2855ea5 100644 --- a/Src/main.c +++ b/Src/main.c @@ -434,7 +434,7 @@ int main(void) { board_temp_deg_c = (TEMP_CAL_HIGH_DEG_C - TEMP_CAL_LOW_DEG_C) * (board_temp_adcFilt - TEMP_CAL_LOW_ADC) / (TEMP_CAL_HIGH_ADC - TEMP_CAL_LOW_ADC) + TEMP_CAL_LOW_DEG_C; serialSendCounter++; // Increment the counter - if (serialSendCounter > 20) { // Send data every 100 ms = 20 * 5 ms, where 5 ms is approximately the main loop duration + if (serialSendCounter >= 4) { // Send data every 20ms (4*5ms (main loop)) //default: Send data every 100 ms = 20 * 5 ms, where 5 ms is approximately the main loop duration serialSendCounter = 0; // Reset the counter // ####### DEBUG SERIAL OUT #######