mirror of
https://github.com/esphome/esphome.git
synced 2026-09-12 15:57:33 +00:00
Merge remote-tracking branch 'upstream/dev' into integration
This commit is contained in:
@@ -509,10 +509,11 @@ async def uart_write_to_code(config, action_id, template_arg, args):
|
||||
@coroutine_with_priority(CoroPriority.FINAL)
|
||||
async def final_step():
|
||||
"""Final code generation step to configure optional UART features."""
|
||||
if CORE.is_esp32:
|
||||
if CORE.is_esp32 and CORE.has_networking:
|
||||
# Wake-on-RX is essentially free on ESP32 (just an ISR function pointer
|
||||
# registration) — enable by default to reduce RX buffer overflow risk
|
||||
# by waking the main loop immediately when data arrives.
|
||||
# Requires networking for the wake_loop_isrsafe() infrastructure.
|
||||
from esphome.components import socket
|
||||
|
||||
socket.require_wake_loop_threadsafe()
|
||||
|
||||
Reference in New Issue
Block a user