fix display (wrong correction)
fix dependency (GxEPD2)
This commit is contained in:
lumapu 2024-01-11 00:42:09 +01:00
parent ed3e93274e
commit 9f39e5c150
2 changed files with 6 additions and 6 deletions

View file

@ -207,7 +207,7 @@ class DisplayMono {
mDisplay->drawLine(xoff, yoff, xoff + mPgWidth, yoff); // horizontal axis
// do not draw as long as time is not set correctly and no data was received
if ((mDisplayData->pGraphStartTime == 0) || (mDisplayData->pGraphEndTime == 0) || (mDisplayData->utcTs != 0) || (mPgMaxPwr != 0) || (mPgLastPos != 0))
if ((mDisplayData->pGraphStartTime == 0) || (mDisplayData->pGraphEndTime == 0) || (mDisplayData->utcTs < 1) || (mPgMaxPwr < 1) || (mPgLastPos < 1))
return;
// draw X scale