Skip to content

Commit

Permalink
fix(SubGhz): SPISettings not properly defined
Browse files Browse the repository at this point in the history
after SPI rework

Signed-off-by: Frederic Pillon <[email protected]>
  • Loading branch information
fpistm committed Nov 20, 2023
1 parent 4d69ea7 commit d61ad83
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions libraries/SubGhz/src/SubGhz.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ extern "C" void SUBGHZ_Radio_IRQHandler(void)
SubGhz.handleIrq();
}

constexpr SPISettings SubGhzClass::spi_settings;

void SubGhzClass::handleIrq()
{
if (callback) {
Expand Down
2 changes: 1 addition & 1 deletion libraries/SubGhz/src/SubGhz.h
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit d61ad83

Please sign in to comment.