mirror of
https://github.com/lumapu/ahoy.git
synced 2025-07-22 18:57:12 +02:00
0.8.5
* fixed endless loop while switching CMT frequency * removed obsolete "retries" field from settings #1224 * fixed crash while defining new invertes #1224 * fixed default frequency settings * added default input power to `400` while adding new inverters * fixed color of wifi RSSI icon #1224
This commit is contained in:
parent
efdac9634f
commit
8ac895f50a
15 changed files with 58 additions and 55 deletions
10
src/app.cpp
10
src/app.cpp
|
@ -63,15 +63,7 @@ void app::setup() {
|
|||
mCommunication.addPayloadListener(std::bind(&app::payloadEventListener, this, std::placeholders::_1, std::placeholders::_2));
|
||||
mSys.setup(&mTimestamp, &mConfig->inst);
|
||||
for (uint8_t i = 0; i < MAX_NUM_INVERTERS; i++) {
|
||||
mSys.addInverter(i, [this](Inverter<> *iv) {
|
||||
// will be only called for valid inverters
|
||||
if((IV_MI == iv->ivGen) || (IV_HM == iv->ivGen))
|
||||
iv->radio = &mNrfRadio;
|
||||
#if defined(ESP32)
|
||||
else if((IV_HMS == iv->ivGen) || (IV_HMT == iv->ivGen))
|
||||
iv->radio = &mCmtRadio;
|
||||
#endif
|
||||
});
|
||||
initInverter(i);
|
||||
}
|
||||
|
||||
if(mConfig->nrf.enabled) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue