clean up missing images in radar parsing

This commit is contained in:
Matt Walsh
2020-09-08 15:21:11 -05:00
parent 560d3a8cb2
commit 32d2b5d1cd
3 changed files with 25 additions and 7 deletions

View File

@@ -232,7 +232,7 @@ class WeatherDisplay {
// if there was a command the canvas has already been drawn
if (navCmd) return;
// refresh the canvas (incase the screen index changed)
// refresh the canvas (in case the screen index changed)
if (navCmd) this.drawCanvas();
}
hideCanvas() {
@@ -304,6 +304,7 @@ class WeatherDisplay {
} else {
this.screenIndexChange(this.screenIndex);
}
this.showCanvas();
}
// navigate to previous screen
@@ -329,6 +330,7 @@ class WeatherDisplay {
} else {
this.screenIndexChange(this.screenIndex);
}
this.showCanvas();
}
// calculate a baseCount from the screen index for the array timings