fix error in label position
This commit is contained in:
parent
a21ce00260
commit
00ea413411
|
@ -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.
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue