File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -306,19 +306,22 @@ SubGhzProtocolStatus
306
306
void ws_protocol_decoder_oregon_v1_get_string (void * context , FuriString * output ) {
307
307
furi_assert (context );
308
308
WSProtocolDecoderOregon_V1 * instance = context ;
309
+ bool locale_is_metric = furi_hal_rtc_get_locale_units () == FuriHalRtcLocaleUnitsMetric ;
309
310
furi_string_cat_printf (
310
311
output ,
311
312
"%s\r\n%dbit\r\n"
312
313
"Key:0x%lX%08lX\r\n"
313
314
"Sn:0x%lX Ch:%d Bat:%d\r\n"
314
- "Temp:%3.1f C Hum:%d%%" ,
315
+ "Temp:%3.1f %c Hum:%d%%" ,
315
316
instance -> generic .protocol_name ,
316
317
instance -> generic .data_count_bit ,
317
318
(uint32_t )(instance -> generic .data >> 32 ),
318
319
(uint32_t )(instance -> generic .data ),
319
320
instance -> generic .id ,
320
321
instance -> generic .channel ,
321
322
instance -> generic .battery_low ,
322
- (double )instance -> generic .temp ,
323
+ (double )(locale_is_metric ? instance -> generic .temp :
324
+ locale_celsius_to_fahrenheit (instance -> generic .temp )),
325
+ locale_is_metric ? 'C' : 'F' ,
323
326
instance -> generic .humidity );
324
327
}
You can’t perform that action at this time.
0 commit comments