Fix external module power disable

This commit is contained in:
MX 2023-03-09 01:23:57 +03:00
parent 3b2d0486a0
commit 16df48bac6
No known key found for this signature in database
GPG Key ID: 7CCC66B7DBDD1C83

View File

@ -91,7 +91,7 @@ bool furi_hal_subghz_enable_ext_power(void) {
}
void furi_hal_subghz_disable_ext_power(void) {
if(furi_hal_subghz.radio_type != SubGhzRadioInternal) {
if(furi_hal_power_is_otg_enabled()) {
furi_hal_power_disable_otg();
}
}