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}"))