fix: gpio pins reset to default state, see desc.

fixed wrong text in wifi deauther
fixed hc sr04 gpio
other fixes
This commit is contained in:
MX
2022-10-26 21:54:23 +03:00
parent 89e27d10a2
commit 7c9f2cd3e8
5 changed files with 37 additions and 8 deletions

View File

@@ -639,6 +639,9 @@ int32_t i2ctools_app(void* p) {
}
view_port_update(i2caddrs->view_port);
}
// Reset GPIO pins to default state
furi_hal_gpio_init(&gpio_ext_pc0, GpioModeAnalog, GpioPullNo, GpioSpeedLow);
furi_hal_gpio_init(&gpio_ext_pc1, GpioModeAnalog, GpioPullNo, GpioSpeedLow);
gui_remove_view_port(gui, i2caddrs->view_port);
view_port_free(i2caddrs->view_port);
furi_message_queue_free(event_queue);