mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
Update subghz GPS dir finder & thread logic
also a few other finishing touches
This commit is contained in:
@@ -148,10 +148,6 @@ void subghz_scene_receiver_on_enter(void* context) {
|
||||
SubGhz* subghz = context;
|
||||
SubGhzHistory* history = subghz->history;
|
||||
|
||||
if(subghz->last_settings->gps_enabled) {
|
||||
furi_thread_start(subghz->gps->thread);
|
||||
}
|
||||
|
||||
FuriString* item_name = furi_string_alloc();
|
||||
FuriString* item_time = furi_string_alloc();
|
||||
|
||||
@@ -340,9 +336,5 @@ bool subghz_scene_receiver_on_event(void* context, SceneManagerEvent event) {
|
||||
}
|
||||
|
||||
void subghz_scene_receiver_on_exit(void* context) {
|
||||
SubGhz* subghz = context;
|
||||
if(subghz->last_settings->gps_enabled) {
|
||||
furi_thread_flags_set(furi_thread_get_id(subghz->gps->thread), WorkerEvtStop);
|
||||
furi_thread_join(subghz->gps->thread);
|
||||
}
|
||||
UNUSED(context);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user