mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-08 14:45:55 +02:00
not NULL chheck
This commit is contained in:
parent
8960fa6650
commit
da4a347c49
1 changed files with 4 additions and 2 deletions
|
@ -58,7 +58,9 @@ class Display {
|
|||
}
|
||||
|
||||
void tickerSecond() {
|
||||
if (mMono!=NULL){
|
||||
mMono->loop();
|
||||
}
|
||||
if (mNewPayload || ((++mLoopCnt % 10) == 0)) {
|
||||
mNewPayload = false;
|
||||
mLoopCnt = 0;
|
||||
|
@ -95,7 +97,7 @@ class Display {
|
|||
totalYieldTotal += iv->getChannelFieldValue(CH0, FLD_YT, rec);
|
||||
}
|
||||
|
||||
if ((0 < mCfg->type) && (mCfg->type < 10)) {
|
||||
if ((0 < mCfg->type) && (mCfg->type < 10) && mMono!=NULL) {
|
||||
mMono->disp(totalPower, totalYieldDay, totalYieldTotal, isprod);
|
||||
} else if (mCfg->type >= 10) {
|
||||
#if defined(ESP32)
|
||||
|
|
Loading…
Add table
Reference in a new issue