Skip to content

Commit d61ad83

Browse files
committed
fix(SubGhz): SPISettings not properly defined
after SPI rework Signed-off-by: Frederic Pillon <[email protected]>
1 parent 4d69ea7 commit d61ad83

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

Diff for: libraries/SubGhz/src/SubGhz.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ extern "C" void SUBGHZ_Radio_IRQHandler(void)
2121
SubGhz.handleIrq();
2222
}
2323

24-
constexpr SPISettings SubGhzClass::spi_settings;
25-
2624
void SubGhzClass::handleIrq()
2725
{
2826
if (callback) {

Diff for: libraries/SubGhz/src/SubGhz.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ class SubGhzClass {
101101
// supported by the radio, which should always work (no chance of
102102
// bad wiring that requires reducing the speed).
103103
// This value should be passed to `SubGhz.SPI.beginTransaction()`.
104-
static constexpr SPISettings spi_settings = {16000000, MSBFIRST, SPI_MODE0};
104+
const SPISettings spi_settings = {16000000, MSBFIRST, SPI_MODE0};
105105

106106
protected:
107107
// To access handleIrq()

0 commit comments

Comments
 (0)