Update subghz GPS changable baudrate --nobuild

This commit is contained in:
Sil333033
2023-10-09 22:05:29 +02:00
parent fb2b0e2385
commit 72869d614b
10 changed files with 74 additions and 31 deletions

View File

@@ -106,7 +106,7 @@ void subghz_scene_show_gps_on_enter(void* context) {
subghz_scene_show_gps_draw_satellites(subghz);
if(subghz->last_settings->gps_enabled) {
if(subghz->last_settings->gps_baudrate != 0) {
subghz->gps->timer =
furi_timer_alloc(subghz_scene_show_gps_refresh_screen, FuriTimerTypePeriodic, subghz);
furi_timer_start(subghz->gps->timer, 1000);
@@ -117,7 +117,7 @@ bool subghz_scene_show_gps_on_event(void* context, SceneManagerEvent event) {
SubGhz* subghz = context;
if(event.type == SceneManagerEventTypeTick) {
if(subghz->state_notifications == SubGhzNotificationStateRx) {
if(subghz->last_settings->gps_enabled) {
if(subghz->last_settings->gps_baudrate != 0) {
if(subghz->gps->satellites > 0) {
notification_message(subghz->notifications, &sequence_blink_green_10);
} else {
@@ -134,7 +134,7 @@ bool subghz_scene_show_gps_on_event(void* context, SceneManagerEvent event) {
void subghz_scene_show_gps_on_exit(void* context) {
SubGhz* subghz = context;
if(subghz->last_settings->gps_enabled) {
if(subghz->last_settings->gps_baudrate != 0) {
furi_timer_stop(subghz->gps->timer);
furi_timer_free(subghz->gps->timer);
}