From 39392421c28d7700faccdc09fadcf90d4619b394 Mon Sep 17 00:00:00 2001 From: thankthemaker Date: Sat, 23 Sep 2023 16:58:15 +0200 Subject: [PATCH] fixed uart init if canbus only --- src/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index a9990a4..fcfa317 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -29,7 +29,9 @@ BLE_OTA_DFU ota_dfu_ble; VescData vescData; -//HardwareSerial vesc(2); +#ifndef CANBUS_ENABLED + HardwareSerial vesc(2); +#endif ILedController *ledController;