mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-15 17:18:01 +00:00
Fix SWD Probe plugin GPIO pins state
Reset pins after exit
This commit is contained in:
parent
512fe8aead
commit
a9e47454d5
1 changed files with 5 additions and 0 deletions
|
@ -3166,6 +3166,11 @@ int32_t swd_probe_app_main(void* p) {
|
|||
furi_message_queue_free(app->event_queue);
|
||||
furi_mutex_free(app->gui_mutex);
|
||||
furi_mutex_free(app->swd_mutex);
|
||||
|
||||
// Reset GPIO pins to default state
|
||||
for(int io = 0; io < 8; io++) {
|
||||
furi_hal_gpio_init(gpios[io], GpioModeAnalog, GpioPullNo, GpioSpeedLow);
|
||||
}
|
||||
free(app);
|
||||
|
||||
furi_record_close(RECORD_GUI);
|
||||
|
|
Loading…
Reference in a new issue