diff --git a/lib/onewire/one_wire_master.cpp b/lib/onewire/one_wire_master.cpp index b7b037f1..e96eeaae 100644 --- a/lib/onewire/one_wire_master.cpp +++ b/lib/onewire/one_wire_master.cpp @@ -12,10 +12,12 @@ 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() {