* 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:
lumapu 2023-11-12 12:02:11 +01:00
parent efdac9634f
commit 8ac895f50a
15 changed files with 58 additions and 55 deletions

View file

@ -104,6 +104,17 @@ class app : public IApp, public ah::Scheduler {
return true;
}
void initInverter(uint8_t id) {
mSys.addInverter(id, [this](Inverter<> *iv) {
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
});
}
bool readSettings(const char *path) {
return mSettings.readSettings(path);
}