mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
Update radar_scanner.c
This commit is contained in:
@@ -132,7 +132,7 @@ int32_t app_radar_scanner(void* p) {
|
||||
furi_hal_gpio_init(altGroundPin, GpioModeOutputPushPull, GpioPullNo, GpioSpeedVeryHigh);
|
||||
furi_hal_gpio_write(altGroundPin, false);
|
||||
|
||||
// Auto 5v- Thanks Willy!!
|
||||
// Auto 5v power
|
||||
uint8_t attempts = 0;
|
||||
bool otg_was_enabled = furi_hal_power_is_otg_enabled();
|
||||
while(!furi_hal_power_is_otg_enabled() && attempts++ < 5) {
|
||||
@@ -200,4 +200,4 @@ int32_t app_radar_scanner(void* p) {
|
||||
furi_record_close(RECORD_NOTIFICATION);
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user