mirror of
https://github.com/lumapu/ahoy.git
synced 2025-08-06 09:58:23 +02:00
converted CMT to use same SPI as NRF (for fusion board)
This commit is contained in:
parent
7c62df071f
commit
25c9667633
12 changed files with 313 additions and 324 deletions
|
@ -47,7 +47,7 @@ class RestApi {
|
|||
mSys = sys;
|
||||
mRadioNrf = (HmRadio<>*)mApp->getRadioObj(true);
|
||||
#if defined(ESP32)
|
||||
mRadioCmt = (CmtRadio<esp32_3wSpi>*)mApp->getRadioObj(false);
|
||||
mRadioCmt = (CmtRadio<>*)mApp->getRadioObj(false);
|
||||
#endif
|
||||
mConfig = config;
|
||||
mSrv->on("/api", HTTP_GET, std::bind(&RestApi::onApi, this, std::placeholders::_1));
|
||||
|
@ -771,7 +771,7 @@ class RestApi {
|
|||
HMSYSTEM *mSys;
|
||||
HmRadio<> *mRadioNrf;
|
||||
#if defined(ESP32)
|
||||
CmtRadio<esp32_3wSpi> *mRadioCmt;
|
||||
CmtRadio<> *mRadioCmt;
|
||||
#endif
|
||||
AsyncWebServer *mSrv;
|
||||
settings_t *mConfig;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue