Explorar el Código

Move power init calls to proper enable external module

MX hace 2 años
padre
commit
ed94bc8786
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      subbrute.c

+ 2 - 1
subbrute.c

@@ -178,10 +178,11 @@ int32_t subbrute_app(void* p) {
         instance->view_dispatcher, instance->gui, ViewDispatcherTypeFullscreen);
         instance->view_dispatcher, instance->gui, ViewDispatcherTypeFullscreen);
     scene_manager_next_scene(instance->scene_manager, SubBruteSceneStart);
     scene_manager_next_scene(instance->scene_manager, SubBruteSceneStart);
 
 
-    furi_hal_power_suppress_charge_enter();
     // Enable power for External CC1101 if it is connected
     // Enable power for External CC1101 if it is connected
     furi_hal_subghz_enable_ext_power();
     furi_hal_subghz_enable_ext_power();
 
 
+    furi_hal_power_suppress_charge_enter();
+
     notification_message(instance->notifications, &sequence_display_backlight_on);
     notification_message(instance->notifications, &sequence_display_backlight_on);
     view_dispatcher_run(instance->view_dispatcher);
     view_dispatcher_run(instance->view_dispatcher);
     furi_hal_power_suppress_charge_exit();
     furi_hal_power_suppress_charge_exit();