Skip to content

Commit

Permalink
Update ui_weather.h
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrouch authored May 4, 2023
1 parent 035c00a commit 8e2ab94
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bbn_m5tough_active_boat/ui_weather.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ extern "C" {

static String hour_format(float hr) {
static char bufferTime[16];
if (hr < 0) {
hr = 24 + hr;
}
int h = hr;
int m = (hr - h) * 60;
int s = ((hr - h) * 60 - m) * 60;
Expand Down

0 comments on commit 8e2ab94

Please sign in to comment.