SubGHz: Show Weather Station icon for WS signals

This commit is contained in:
Willy-JL
2024-09-03 01:13:03 +02:00
parent a3e1b66be4
commit aebde09f02
5 changed files with 8 additions and 0 deletions

View File

@@ -11,6 +11,7 @@
- Authenticator: Confirm token export on Flipper (by @akopachov)
- NFC Playlist: Allow delay up to 12s (by @xtruan)
- BLE Spam: Fix delay help section (by @Willy-JL)
- Sub-GHz: Show Weather Station icon for WS signals (by @Willy-JL)
- API: Publishing T5577 page 1 block count macro (by @zinongli)
### Fixed:

View File

@@ -269,6 +269,11 @@ bool subghz_history_add_to_history(
SubGhzHistoryItem* item = SubGhzHistoryItemArray_push_raw(instance->history->data);
item->preset = malloc(sizeof(SubGhzRadioPreset));
item->type = decoder_base->protocol->type;
if(decoder_base->protocol->filter & SubGhzProtocolFilter_Weather) {
// Other code uses protocol type to check if signal is usable
// so we can't change the actual protocol type, we fake it here
item->type = SubGhzProtocolWeatherStation;
}
item->preset->frequency = preset->frequency;
item->preset->name = furi_string_alloc();
furi_string_set(item->preset->name, preset->name);

View File

@@ -38,6 +38,7 @@ static const Icon* ReceiverItemIcons[] = {
[SubGhzProtocolTypeUnknown] = &I_Quest_7x8,
[SubGhzProtocolTypeStatic] = &I_Static_9x7,
[SubGhzProtocolTypeDynamic] = &I_Dynamic_9x7,
[SubGhzProtocolWeatherStation] = &I_Weather_7x8,
[SubGhzProtocolTypeBinRAW] = &I_Raw_9x7,
};

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 B

View File

@@ -3988,6 +3988,7 @@ Variable,+,I_Volup_8x6,const Icon,
Variable,+,I_WarningDolphinFlip_45x42,const Icon,
Variable,+,I_WarningDolphin_45x42,const Icon,
Variable,+,I_Warning_30x23,const Icon,
Variable,+,I_Weather_7x8,const Icon,
Variable,+,I_arrow_nano_down,const Icon,
Variable,+,I_arrow_nano_up,const Icon,
Variable,+,I_back_10px,const Icon,
1 entry status name type params
3988 Variable + I_WarningDolphinFlip_45x42 const Icon
3989 Variable + I_WarningDolphin_45x42 const Icon
3990 Variable + I_Warning_30x23 const Icon
3991 Variable + I_Weather_7x8 const Icon
3992 Variable + I_arrow_nano_down const Icon
3993 Variable + I_arrow_nano_up const Icon
3994 Variable + I_back_10px const Icon