File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ extern "C" void SUBGHZ_Radio_IRQHandler(void)
21
21
SubGhz.handleIrq ();
22
22
}
23
23
24
+ constexpr SPISettings SubGhzClass::spi_settings;
25
+
24
26
void SubGhzClass::handleIrq ()
25
27
{
26
28
if (callback) {
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ class SubGhzClass {
101
101
// supported by the radio, which should always work (no chance of
102
102
// bad wiring that requires reducing the speed).
103
103
// This value should be passed to `SubGhz.SPI.beginTransaction()`.
104
- const SPISettings spi_settings = {16000000 , MSBFIRST, SPI_MODE0};
104
+ static constexpr SPISettings spi_settings = {16000000 , MSBFIRST, SPI_MODE0};
105
105
106
106
protected:
107
107
// To access handleIrq()
You can’t perform that action at this time.
0 commit comments