mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-08-26 09:11:37 +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 962: //hurricane
|
||||
default:
|
||||
throw new IllegalArgumentException("Unknown weather code " + openWeatherCode);
|
||||
return 255; //invalid
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user