Skip to content

Commit 0a84a6e

Browse files
committed
Rename wait_for_uart_available to wait_for_uart_drain
1 parent c4e7959 commit 0a84a6e

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

esphome/nspanel_esphome_hw_uart.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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

344345
uart:
345346
- id: tf_uart # UART for Nextion display

nspanel_easy_blueprint.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
##################################################################################################
77
---
88
blueprint:
9-
name: NSPanel Easy Configuration (v2026.4.10)
9+
name: NSPanel Easy Configuration (v9999.99.9)
1010
author: Edward Firmo (https://github.com/edwardtfn)
1111
description: >
1212
# NSPanel Easy Configuration via Blueprint
@@ -4044,7 +4044,7 @@ trigger_variables:
40444044
}}
40454045

40464046
variables:
4047-
blueprint_version: 2026.4.10
4047+
blueprint_version: 9999.99.9
40484048
pages:
40494049
current: '{{ states(currentpage) }}'
40504050
alarm: "alarm"

0 commit comments

Comments
 (0)