mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-23 05:46:09 +02:00
fix wakeup issue, once wifi was lost during night the communication didn't start in the morning
reenabled FlashStringHelper because of lacking RAM complete rewrite of monochrome display class, thx to @dAjaY85 -> displays are now configurable in setup
This commit is contained in:
parent
76b5818f48
commit
2b3f252bbf
17 changed files with 385 additions and 483 deletions
|
@ -315,6 +315,22 @@ class Inverter {
|
|||
return true;
|
||||
}
|
||||
|
||||
REC_TYP getChannelFieldValue(uint8_t channel, uint8_t fieldId, record_t<> *rec) {
|
||||
uint8_t pos = 0;
|
||||
if(NULL != rec) {
|
||||
for(; pos < rec->length; pos++) {
|
||||
if((rec->assign[pos].ch == channel) && (rec->assign[pos].fieldId == fieldId))
|
||||
break;
|
||||
}
|
||||
if(pos >= rec->length)
|
||||
return 0;
|
||||
|
||||
return rec->record[pos];
|
||||
}
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
REC_TYP getValue(uint8_t pos, record_t<> *rec) {
|
||||
DPRINTLN(DBG_VERBOSE, F("hmInverter.h:getValue"));
|
||||
if(NULL == rec)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue