no hazards, blizzard
This commit is contained in:
parent
2c394c2e4a
commit
5b926a358e
|
@ -50,7 +50,10 @@ class Hazards extends WeatherDisplay {
|
|||
|
||||
this.getDataCallback();
|
||||
|
||||
if (!superResult) return;
|
||||
if (!superResult) {
|
||||
this.setStatus(STATUS.loaded);
|
||||
return;
|
||||
}
|
||||
this.drawLongCanvas();
|
||||
}
|
||||
|
||||
|
@ -71,6 +74,7 @@ class Hazards extends WeatherDisplay {
|
|||
|
||||
// no alerts, skip this display by setting timing to zero
|
||||
if (lines.length === 0) {
|
||||
this.setStatus(STATUS.loaded);
|
||||
this.timing.totalScreens = 0;
|
||||
return;
|
||||
}
|
||||
|
@ -86,8 +90,8 @@ class Hazards extends WeatherDisplay {
|
|||
for (let i = 0; i < pages; i += 1) this.timing.delay.push(timingStep);
|
||||
// add the final 3 second delay
|
||||
this.timing.delay.push(150);
|
||||
this.calcNavTiming();
|
||||
this.setStatus(STATUS.loaded);
|
||||
this.calcNavTiming();
|
||||
}
|
||||
|
||||
drawCanvas() {
|
||||
|
|
|
@ -268,6 +268,7 @@ const getWeatherIconFromIconLink = (link, _isNightTime) => {
|
|||
return addPath('CC_Windy.gif');
|
||||
|
||||
case 'blizzard':
|
||||
case 'blizzard-n':
|
||||
return addPath('Blowing-Snow.gif');
|
||||
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue