We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e8feb0 commit c9a89f1Copy full SHA for c9a89f1
libraries/SubGhz/src/SubGhz.cpp
@@ -21,6 +21,8 @@ extern "C" void SUBGHZ_Radio_IRQHandler(void)
21
SubGhz.handleIrq();
22
}
23
24
+constexpr SPISettings SubGhzClass::spi_settings;
25
+
26
void SubGhzClass::handleIrq()
27
{
28
if (callback) {
libraries/SubGhz/src/SubGhz.h
@@ -101,7 +101,7 @@ class SubGhzClass {
101
// supported by the radio, which should always work (no chance of
102
// bad wiring that requires reducing the speed).
103
// This value should be passed to `SubGhz.SPI.beginTransaction()`.
104
- const SPISettings spi_settings = {16000000, MSBFIRST, SPI_MODE0};
+ static constexpr SPISettings spi_settings = {16000000, MSBFIRST, SPI_MODE0};
105
106
protected:
107
// To access handleIrq()
0 commit comments