From ce3f956fe60c0f1473b632c23f4360f6c08e37f0 Mon Sep 17 00:00:00 2001 From: netmindz Date: Tue, 17 Sep 2024 22:21:14 +0100 Subject: [PATCH] Update __init__.py --- components/BalboaGL/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/BalboaGL/__init__.py b/components/BalboaGL/__init__.py index bb46c6f..b23bdac 100644 --- a/components/BalboaGL/__init__.py +++ b/components/BalboaGL/__init__.py @@ -65,7 +65,7 @@ def valid_uart(uart): @coroutine def to_code(config): - serial = "Serial" + serial = cg.global_ns.Serial1 # HARDWARE_UART_TO_SERIAL[PLATFORM_ESP32][config[CONF_HARDWARE_UART]] var = cg.new_Pvariable(config[CONF_ID], cg.RawExpression(f"&{serial}"))