From 630c67a482c75d21205912d581e84fff26df9478 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 2 Sep 2025 18:57:25 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- test/emul/Arduino.cpp | 12 +++++------- test/emul/Arduino.h | 8 ++++---- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/test/emul/Arduino.cpp b/test/emul/Arduino.cpp index f14846c3..563dd466 100644 --- a/test/emul/Arduino.cpp +++ b/test/emul/Arduino.cpp @@ -3,13 +3,11 @@ #include "../../Software/src/communication/can/comm_can.h" // Provide the definition that was previously in USER_SETTINGS.cpp -volatile CAN_Configuration can_config = { - .battery = CAN_Interface::CAN_NATIVE, - .inverter = CAN_Interface::CAN_NATIVE, - .battery_double = CAN_Interface::CAN_NATIVE, - .charger = CAN_Interface::CAN_NATIVE, - .shunt = CAN_Interface::CAN_NATIVE -}; +volatile CAN_Configuration can_config = {.battery = CAN_Interface::CAN_NATIVE, + .inverter = CAN_Interface::CAN_NATIVE, + .battery_double = CAN_Interface::CAN_NATIVE, + .charger = CAN_Interface::CAN_NATIVE, + .shunt = CAN_Interface::CAN_NATIVE}; void delay(unsigned long ms) {} void delayMicroseconds(unsigned long us) {} diff --git a/test/emul/Arduino.h b/test/emul/Arduino.h index af908100..0bcf55b5 100644 --- a/test/emul/Arduino.h +++ b/test/emul/Arduino.h @@ -103,13 +103,13 @@ typedef int WiFiEventInfo_t; // Mock WiFi functions inline void onWifiConnect(WiFiEvent_t event, WiFiEventInfo_t info) { - (void)event; - (void)info; + (void)event; + (void)info; } inline void onWifiDisconnect(WiFiEvent_t event, WiFiEventInfo_t info) { - (void)event; - (void)info; + (void)event; + (void)info; } unsigned long micros();