mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-24 14:26:11 +02:00
add spi pins to config container, remove hacks from app code
This commit is contained in:
parent
cccbe63f2b
commit
44f602f1a7
4 changed files with 10 additions and 4 deletions
|
@ -30,9 +30,9 @@ void app::setup() {
|
|||
DBGPRINTLN(F("false"));
|
||||
|
||||
mSys.enableDebug();
|
||||
mSys.setup(mConfig->nrf.amplifierPower, 47, 38, 37, 36, 35, 48);
|
||||
mSys.setup(mConfig->nrf.amplifierPower, mConfig->nrf.pinIrq, mConfig->nrf.pinCe, mConfig->nrf.pinCs, mConfig->nrf.pinSclk, mConfig->nrf.pinMosi, mConfig->nrf.pinMiso);
|
||||
|
||||
#if defined(AP_ONLY)
|
||||
#if defined(AP_ONLY)
|
||||
mInnerLoopCb = std::bind(&app::loopStandard, this);
|
||||
#else
|
||||
mInnerLoopCb = std::bind(&app::loopWifi, this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue