[FL-1190] Enable OTG pullup for reading and writing keys (#423)

This commit is contained in:
gornekich
2021-04-24 01:23:16 +03:00
committed by GitHub
parent f7aeab7084
commit 577606afb9
3 changed files with 4 additions and 2 deletions

View File

@@ -12,12 +12,10 @@ OneWireMaster::~OneWireMaster() {
void OneWireMaster::start(void) {
gpio_init(gpio, GpioModeOutputOpenDrain);
api_hal_power_enable_otg();
}
void OneWireMaster::stop(void) {
gpio_init(gpio, GpioModeAnalog);
api_hal_power_disable_otg();
}
void OneWireMaster::reset_search() {