From 4ecd6b23d141783dbba66a50975079a66fc51e53 Mon Sep 17 00:00:00 2001 From: Magnus Date: Wed, 8 Nov 2023 07:34:53 +0100 Subject: [PATCH] Pre-commit fixes --- src/ble.cpp | 3 +-- src/ble.hpp | 2 ++ src/main.hpp | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ble.cpp b/src/ble.cpp index cc7c64b6..744a719e 100644 --- a/src/ble.cpp +++ b/src/ble.cpp @@ -24,7 +24,6 @@ SOFTWARE. #if defined(ESP32) && !defined(ESP32S2) #include -#include #include // Tilt UUID variants and data format, based on tilt-sim @@ -100,7 +99,7 @@ void BleSender::sendData(float tempF, float gravSG) { _advertising->setScanResponseData(oScanResponseData); _advertising->setAdvertisementType(BLE_GAP_CONN_MODE_NON); - if(!_advertising->start()) + if (!_advertising->start()) Log.error(F("BLE : Unable to start advertising beacon" CR)); delay(100); diff --git a/src/ble.hpp b/src/ble.hpp index 33ee0577..c072b573 100644 --- a/src/ble.hpp +++ b/src/ble.hpp @@ -30,6 +30,8 @@ SOFTWARE. #include #include +#include + class BleSender { private: BLEAdvertising* _advertising; diff --git a/src/main.hpp b/src/main.hpp index 02fd4c5c..0a824325 100644 --- a/src/main.hpp +++ b/src/main.hpp @@ -151,7 +151,8 @@ extern RunMode runMode; #define PIN_VOLT PIN_A0 #endif -#if defined(USE_SERIAL_PINS) && (defined(ESP32C3) || defined(ESP32S2) || defined(ESP32S3)) +#if defined(USE_SERIAL_PINS) && \ + (defined(ESP32C3) || defined(ESP32S2) || defined(ESP32S3)) // #define EspSerial Serial0 // We cant use Serial on newer boards since this is // using USBC port #define EspSerial \