Skip to content

Commit

Permalink
Pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mp-se committed Nov 8, 2023
1 parent ed8ea11 commit 4ecd6b2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/ble.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ SOFTWARE.
#if defined(ESP32) && !defined(ESP32S2)

#include <ble.hpp>
#include <helper.hpp>
#include <string>

// Tilt UUID variants and data format, based on tilt-sim
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 2 additions & 0 deletions src/ble.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ SOFTWARE.
#include <NimBLEBeacon.h>
#include <NimBLEDevice.h>

#include <helper.hpp>

class BleSender {
private:
BLEAdvertising* _advertising;
Expand Down
3 changes: 2 additions & 1 deletion src/main.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 4ecd6b2

Please sign in to comment.