From bc6097f89b7e38f9ad09d85e5ed1ae80d18e9f69 Mon Sep 17 00:00:00 2001 From: Fisch Date: Fri, 20 Dec 2019 21:57:41 +0100 Subject: [PATCH] fix and shorten feedback send delay --- Src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 #######