mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-14 09:08:36 -07:00
Weather station: new external radio driver (#3)
* Weather station: new external radio driver
This commit is contained in:
@@ -48,13 +48,18 @@ static void weather_station_scene_receiver_update_statusbar(void* context) {
|
||||
app->ws_receiver,
|
||||
furi_string_get_cstr(frequency_str),
|
||||
furi_string_get_cstr(modulation_str),
|
||||
furi_string_get_cstr(history_stat_str));
|
||||
furi_string_get_cstr(history_stat_str),
|
||||
radio_device_loader_is_external(app->txrx->radio_device));
|
||||
|
||||
furi_string_free(frequency_str);
|
||||
furi_string_free(modulation_str);
|
||||
} else {
|
||||
ws_view_receiver_add_data_statusbar(
|
||||
app->ws_receiver, furi_string_get_cstr(history_stat_str), "", "");
|
||||
app->ws_receiver,
|
||||
furi_string_get_cstr(history_stat_str),
|
||||
"",
|
||||
"",
|
||||
radio_device_loader_is_external(app->txrx->radio_device));
|
||||
}
|
||||
furi_string_free(history_stat_str);
|
||||
}
|
||||
@@ -196,7 +201,7 @@ bool weather_station_scene_receiver_on_event(void* context, SceneManagerEvent ev
|
||||
weather_station_scene_receiver_update_statusbar(app);
|
||||
}
|
||||
// Get current RSSI
|
||||
float rssi = furi_hal_subghz_get_rssi();
|
||||
float rssi = subghz_devices_get_rssi(app->txrx->radio_device);
|
||||
ws_view_receiver_set_rssi(app->ws_receiver, rssi);
|
||||
|
||||
if(app->txrx->txrx_state == WSTxRxStateRx) {
|
||||
|
||||
Reference in New Issue
Block a user