From f6887d721353e8444dd5e3e774d2481618e414ac Mon Sep 17 00:00:00 2001 From: Frederic Pillon 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 --- 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() pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy