From 00ea413411692c3ba601d541cc848927fa0680c4 Mon Sep 17 00:00:00 2001 From: Tobias E Date: Sat, 23 Aug 2025 18:55:33 +0000 Subject: [PATCH] fix error in label position --- lib/obp60task/PageWindRoseFlex.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/obp60task/PageWindRoseFlex.cpp b/lib/obp60task/PageWindRoseFlex.cpp index 09e9791..8fefb21 100644 --- a/lib/obp60task/PageWindRoseFlex.cpp +++ b/lib/obp60task/PageWindRoseFlex.cpp @@ -364,6 +364,7 @@ public: // Show value6 (=fourth user-configured parameter) and ssource, so that they do not collide with the wind pointer if ( cos(value1) > 0){ + //pointer points upwards getdisplay().setFont(&DSEG7Classic_BoldItalic16pt7b); getdisplay().setCursor(160, 200); getdisplay().print(svalue6); // Value @@ -385,6 +386,7 @@ if ( cos(value1) > 0){ getdisplay().print(ssource); // true or app. } else{ + // pointer points downwards getdisplay().setFont(&DSEG7Classic_BoldItalic16pt7b); getdisplay().setCursor(160, 130); getdisplay().print(svalue6); // Value @@ -398,10 +400,10 @@ else{ getdisplay().print(unit6old); // Unit } if (sin(value1)>0){ - getdisplay().setCursor(160, 130); + getdisplay().setCursor(160, 200); } else{ - getdisplay().setCursor(220, 130); + getdisplay().setCursor(220, 200); } getdisplay().print(ssource); //true or app. }