@@ -72,8 +72,8 @@ script:
7272 #endif // ${BAUD_RATE} != ${BAUD_RATE_FALLBACK}
7373
7474 # Wait for TX to drain and Nextion to finish transmitting at old rate
75- - script.execute : wait_for_uart_available
76- - script.wait : wait_for_uart_available
75+ - script.execute : wait_for_uart_drain
76+ - script.wait : wait_for_uart_drain
7777 - delay : 150ms
7878
7979 - lambda : |-
@@ -208,8 +208,8 @@ script:
208208 disp1->send_command_printf("baud=%" PRIu32, static_cast<uint32_t>(${BAUD_RATE}));
209209
210210 # Wait for TX to drain and Nextion to finish at old rate
211- - script.execute : wait_for_uart_available
212- - script.wait : wait_for_uart_available
211+ - script.execute : wait_for_uart_drain
212+ - script.wait : wait_for_uart_drain
213213 - delay : 150ms
214214
215215 - lambda : |-
@@ -317,16 +317,16 @@ script:
317317 - lambda : |-
318318 baud_negotiate->stop();
319319 baud_upgrade->stop();
320- wait_for_uart_available ->stop();
320+ wait_for_uart_drain ->stop();
321321
322- - id : wait_for_uart_available
322+ - id : wait_for_uart_drain
323323 mode : single
324324 then :
325325 - repeat :
326326 count : 60 # seconds
327327 then :
328328 - lambda : |-
329- if (tf_uart->available() == 0) wait_for_uart_available ->stop();
329+ if (tf_uart->available() == 0) wait_for_uart_drain ->stop();
330330 if (iteration % 5 == 0) boot_log->execute("Boot", "Waiting for UART empty queue");
331331 - delay : 1s
332332
@@ -340,6 +340,7 @@ text_sensor:
340340 return std::to_string(tf_uart->get_baud_rate());
341341 filters :
342342 - append : " bps"
343+ update_interval : 111min
343344
344345uart :
345346 - id : tf_uart # UART for Nextion display
0 commit comments