Skip to content

Commit

Permalink
fix pressure drawing bug when pressung < 1000
Browse files Browse the repository at this point in the history
  • Loading branch information
kolle86 committed Dec 2, 2018
1 parent 2e0b99b commit 02114fd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion MorphingClockRemixRemix.ino
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,7 @@ void draw_weather ()
int value = 0;
Serial.println ("showing the weather");
xo = 0; yo = 1;
TFDrawText (&display, String(" "), xo, yo, cc_dgr);
TFDrawText (&display, String(" "), xo, yo, cc_dgr);
if (tempM == -10000 || humiM == -10000 || presM == -10000)
{
//TFDrawText (&display, String("NO WEATHER DATA"), xo, yo, cc_dgr);
Expand Down Expand Up @@ -1125,6 +1125,8 @@ void draw_weather ()
//-pressure
lstr = String (presM);
xo = 12*TF_COLS;
if(presM < 1000)
xo=13*TF_COLS;
TFDrawText (&display, lstr, xo, yo, cc_gry);
//draw wind speed and direction
if (wind_speed > -10000)
Expand Down

0 comments on commit 02114fd

Please sign in to comment.