Skip to content

Commit

Permalink
Move the diagram in Y direction if screen saver mode is turned on
Browse files Browse the repository at this point in the history
  • Loading branch information
tbnobody committed Dec 24, 2023
1 parent 2259b1b commit 06b8fb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Display_Graphic_Diagram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ void DisplayGraphicDiagramClass::updatePeriod()
void DisplayGraphicDiagramClass::redraw(uint8_t screenSaverOffsetX)
{
const uint8_t graphPosX = DIAG_POSX + ((screenSaverOffsetX > 3) ? 1 : 0); // screenSaverOffsetX expected to be in range 0..6
const uint8_t graphPosY = DIAG_POSY;
const uint8_t graphPosY = DIAG_POSY + ((screenSaverOffsetX > 3) ? 1 : 0);

// draw diagram axis
_display->drawVLine(graphPosX, graphPosY, CHART_HEIGHT);
Expand Down

0 comments on commit 06b8fb6

Please sign in to comment.