simplify rxOffset logic

- Code cleanup
- fix "nRF CE keep high" code (missing argument)
This commit is contained in:
rejoe2 2024-02-09 11:53:20 +01:00 committed by GitHub
parent 15349520d2
commit d15e75dbab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 55 additions and 91 deletions

View file

@ -132,7 +132,6 @@ class Inverter {
record_t<REC_TYP> recordAlarm; // structure for alarm values
InverterStatus status = InverterStatus::OFF; // indicates the current inverter status
std::array<alarm_t, 10> lastAlarm; // holds last 10 alarms
uint8_t rxOffset = 0; // holds the default channel offset between tx and rx channel (nRF only)
int8_t rssi = 0; // RSSI
uint16_t alarmCnt = 0; // counts the total number of occurred alarms
uint16_t alarmLastId = 0; // lastId which was received