mirror of https://github.com/espruino/BangleApps
Set data to zero at 00:00
parent
c2f3a46145
commit
e1b8d8c669
|
@ -293,6 +293,13 @@ function draw(){
|
|||
// Handle steps for graph data
|
||||
handleSteps();
|
||||
|
||||
// Clear data
|
||||
var current = new Date();
|
||||
if(current.getHours() == 0 && current.getMinutes() == 0){
|
||||
stepsData = new Array(24).fill(0);
|
||||
hrmData = new Array(24).fill(0);
|
||||
}
|
||||
|
||||
// Next draw the watch face
|
||||
g.reset();
|
||||
g.clearRect(0, 0, g.getWidth(), g.getHeight());
|
||||
|
|
Loading…
Reference in New Issue