mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-02-17 21:06:48 +01: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…
x
Reference in New Issue
Block a user