Skip to content

Commit 23ed89c

Browse files
committed
Remove the duplicate post-probe success path
#103 (comment)
1 parent 37ffd15 commit 23ed89c

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

esphome/nspanel_esphome_hw_uart.yaml

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -273,31 +273,6 @@ script:
273273
disp1->send_command_printf("baud=%" PRIu32, static_cast<uint32_t>(${BAUD_RATE_FALLBACK}));
274274
}
275275
276-
- delay: !lambda return ${BAUD_RATE_UPGRADE_PROBE_MS};
277-
278-
- lambda: |-
279-
if (!system_flags.baud_fallback_active) return;
280-
281-
if (tf_uart->available() > 0) {
282-
// Flush probe response
283-
while (tf_uart->available()) {
284-
uint8_t discard;
285-
tf_uart->read_byte(&discard);
286-
}
287-
system_flags.baud_fallback_active = false;
288-
ESP_LOGI("${TAG_HW_UART}", "Baud upgrade: success - now at %" PRIu32 " bps",
289-
static_cast<uint32_t>(${BAUD_RATE}));
290-
boot_log->execute("Baud", "Upgraded to primary rate");
291-
} else {
292-
// Probe failed - revert UART to fallback before next attempt
293-
ESP_LOGW("${TAG_HW_UART}", "Baud upgrade: probe failed on attempt %u - reverting UART",
294-
static_cast<unsigned>(iteration + 1u));
295-
tf_uart->set_baud_rate(${BAUD_RATE_FALLBACK});
296-
tf_uart->load_settings();
297-
baud_rate_active->update();
298-
disp1->send_command_printf("baud=%" PRIu32, static_cast<uint32_t>(${BAUD_RATE_FALLBACK}));
299-
}
300-
301276
- delay: 500ms
302277

303278
- lambda: |-

0 commit comments

Comments
 (0)