From 7bac2c3c2268fce93e5db1ad0690dce990c7a9b2 Mon Sep 17 00:00:00 2001
From: Davide Mor <tazdevil971@gmail.com>
Date: Sun, 6 Aug 2023 23:54:44 +0200
Subject: [PATCH] [sx1278] Fixed formatting

---
 src/entrypoints/sx1278-serial.cpp         | 6 +++---
 src/shared/radio/SX1278/SX1278Defs.h      | 1 -
 src/shared/radio/SX1278/SX1278Frontends.h | 5 +----
 src/tests/radio/sx1278/sx1278-init.h      | 6 +++---
 4 files changed, 7 insertions(+), 11 deletions(-)

diff --git a/src/entrypoints/sx1278-serial.cpp b/src/entrypoints/sx1278-serial.cpp
index ccda46ee6..ae0e6f41a 100644
--- a/src/entrypoints/sx1278-serial.cpp
+++ b/src/entrypoints/sx1278-serial.cpp
@@ -239,11 +239,11 @@ int main()
 #elif defined SX1278_IS_SKYWARD433
     printf("[sx1278] Confuring Skyward 433 frontend...\n");
     std::unique_ptr<Boardcore::SX1278::ISX1278Frontend> frontend(
-        new Boardcore::Skyward433Frontend());
+              new Boardcore::Skyward433Frontend());
 #else
     printf("[sx1278] Confuring RA01 frontend...\n");
     std::unique_ptr<Boardcore::SX1278::ISX1278Frontend> frontend(
-        new Boardcore::RA01Frontend());
+         new Boardcore::RA01Frontend());
 #endif
 
 #ifdef SX1278_IS_LORA
@@ -280,7 +280,7 @@ int main()
     printf("\n[sx1278] Configuring sx1278 fsk...\n");
     if ((err = sx1278->init(config)) != Boardcore::SX1278Fsk::Error::NONE)
     {
-        // FIXME: Why does clang-format put this line up here?
+              // FIXME: Why does clang-format put this line up here?
         printf("[sx1278] sx1278->init error\n");
         return false;
     }
diff --git a/src/shared/radio/SX1278/SX1278Defs.h b/src/shared/radio/SX1278/SX1278Defs.h
index 088564da4..1398b00db 100644
--- a/src/shared/radio/SX1278/SX1278Defs.h
+++ b/src/shared/radio/SX1278/SX1278Defs.h
@@ -61,7 +61,6 @@ constexpr int MAX_FREQ_DEV = 0x3fff * FSTEP;
 constexpr int MIN_FREQ_RF = 0;
 constexpr int MAX_FREQ_RF = 0xffffff * FSTEP;
 
-
 /**
  * @brief Represents a DIO..
  */
diff --git a/src/shared/radio/SX1278/SX1278Frontends.h b/src/shared/radio/SX1278/SX1278Frontends.h
index e76662712..41c90f858 100644
--- a/src/shared/radio/SX1278/SX1278Frontends.h
+++ b/src/shared/radio/SX1278/SX1278Frontends.h
@@ -38,10 +38,7 @@ public:
     }
 
     bool isOnPaBoost() override { return true; }
-    int maxInPower() override
-    {
-        return 15;
-    }
+    int maxInPower() override { return 15; }
 
     void enableRx() override { rx_enable.high(); }
     void disableRx() override { rx_enable.low(); }
diff --git a/src/tests/radio/sx1278/sx1278-init.h b/src/tests/radio/sx1278/sx1278-init.h
index f5b481017..f30494872 100644
--- a/src/tests/radio/sx1278/sx1278-init.h
+++ b/src/tests/radio/sx1278/sx1278-init.h
@@ -208,11 +208,11 @@ bool initRadio()
 #elif defined SX1278_IS_SKYWARD433
     printf("[sx1278] Confuring Skyward 433 frontend...\n");
     std::unique_ptr<Boardcore::SX1278::ISX1278Frontend> frontend(
-        new Boardcore::Skyward433Frontend());
+              new Boardcore::Skyward433Frontend());
 #else
     printf("[sx1278] Confuring RA01 frontend...\n");
     std::unique_ptr<Boardcore::SX1278::ISX1278Frontend> frontend(
-        new Boardcore::RA01Frontend());
+         new Boardcore::RA01Frontend());
 #endif
 
     // Initialize actual radio driver
@@ -247,7 +247,7 @@ bool initRadio()
     printf("\n[sx1278] Configuring sx1278 fsk...\n");
     if ((err = sx1278->init(config)) != Boardcore::SX1278Fsk::Error::NONE)
     {
-        // FIXME: Why does clang-format put this line up here?
+              // FIXME: Why does clang-format put this line up here?
         printf("[sx1278] sx1278->init error\n");
         return false;
     }
-- 
GitLab