mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-10-11 23:58:14 +02:00
Garmin: encode unknown weather codes as invalid
This commit is contained in:
parent
77f119c211
commit
179f8a3a9e
@ -138,7 +138,7 @@ public class FieldDefinitionWeatherCondition extends FieldDefinition {
|
|||||||
case 902: //hurricane
|
case 902: //hurricane
|
||||||
case 962: //hurricane
|
case 962: //hurricane
|
||||||
default:
|
default:
|
||||||
throw new IllegalArgumentException("Unknown weather code " + openWeatherCode);
|
return 255; //invalid
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user