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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user