Update radar_scanner.c

This commit is contained in:
WillyJL
2023-10-10 19:59:43 +01:00
committed by GitHub
parent 72fbca2986
commit 327690b90a

View File

@@ -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;
}
}