mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
SubGHz: Show Weather Station icon for WS signals
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
|
||||
BIN
assets/icons/SubGhz/Weather_7x8.png
Normal file
BIN
assets/icons/SubGhz/Weather_7x8.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 81 B |
@@ -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,
|
||||
|
||||
|
Reference in New Issue
Block a user