mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-20 04:54:45 -07:00
Fix issues with external module 5v power
This commit is contained in:
@@ -107,6 +107,9 @@ WeatherStationApp* weather_station_app_alloc() {
|
||||
|
||||
furi_hal_power_suppress_charge_enter();
|
||||
|
||||
// Enable power for External CC1101 if it is connected
|
||||
furi_hal_subghz_enable_ext_power();
|
||||
|
||||
scene_manager_next_scene(app->scene_manager, WeatherStationSceneStart);
|
||||
|
||||
return app;
|
||||
@@ -118,6 +121,9 @@ void weather_station_app_free(WeatherStationApp* app) {
|
||||
//CC1101 off
|
||||
ws_sleep(app);
|
||||
|
||||
// Disable power for External CC1101 if it was enabled and module is connected
|
||||
furi_hal_subghz_disable_ext_power();
|
||||
|
||||
// Submenu
|
||||
view_dispatcher_remove_view(app->view_dispatcher, WeatherStationViewSubmenu);
|
||||
submenu_free(app->submenu);
|
||||
|
||||
Reference in New Issue
Block a user