mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
5V is always on when USB is plugged --nobuild
This commit is contained in:
@@ -69,7 +69,9 @@ void gpio_scene_start_on_enter(void* context) {
|
||||
GpioOtgSettingsNum,
|
||||
gpio_scene_start_var_list_change_callback,
|
||||
app);
|
||||
if(furi_hal_power_is_otg_enabled()) {
|
||||
if(furi_hal_power_is_charging()) {
|
||||
variable_item_set_locked(item, true, "Unplug USB!");
|
||||
} else if(furi_hal_power_is_otg_enabled()) {
|
||||
variable_item_set_current_value_index(item, GpioOtgOn);
|
||||
variable_item_set_current_value_text(item, gpio_otg_text[GpioOtgOn]);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user