From d61ad831a72241657fcd2dfd1d3e6d704dd601e6 Mon Sep 17 00:00:00 2001
From: Frederic Pillon <frederic.pillon@st.com>
Date: Mon, 20 Nov 2023 11:01:08 +0100
Subject: [PATCH] fix(SubGhz): SPISettings not properly defined

after SPI rework

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
---
 libraries/SubGhz/src/SubGhz.cpp | 2 --
 libraries/SubGhz/src/SubGhz.h   | 2 +-
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/libraries/SubGhz/src/SubGhz.cpp b/libraries/SubGhz/src/SubGhz.cpp
index b5394fd55f..a175c0c551 100644
--- a/libraries/SubGhz/src/SubGhz.cpp
+++ b/libraries/SubGhz/src/SubGhz.cpp
@@ -21,8 +21,6 @@ extern "C" void SUBGHZ_Radio_IRQHandler(void)
   SubGhz.handleIrq();
 }
 
-constexpr SPISettings SubGhzClass::spi_settings;
-
 void SubGhzClass::handleIrq()
 {
   if (callback) {
diff --git a/libraries/SubGhz/src/SubGhz.h b/libraries/SubGhz/src/SubGhz.h
index 60bb621fad..dd8683f279 100644
--- a/libraries/SubGhz/src/SubGhz.h
+++ b/libraries/SubGhz/src/SubGhz.h
@@ -101,7 +101,7 @@ class SubGhzClass {
     // supported by the radio, which should always work (no chance of
     // bad wiring that requires reducing the speed).
     // This value should be passed to `SubGhz.SPI.beginTransaction()`.
-    static constexpr SPISettings spi_settings = {16000000, MSBFIRST, SPI_MODE0};
+    const SPISettings spi_settings = {16000000, MSBFIRST, SPI_MODE0};
 
   protected:
     // To access handleIrq()