From 416e1bda3519020d3dbcf9b5e66e693fcfa66279 Mon Sep 17 00:00:00 2001 From: SG Date: Tue, 28 Sep 2021 00:00:03 +1000 Subject: [PATCH] [FL-1881] iButton cli: enable "OTG" when performing "onewire search" #725 --- applications/ibutton/ibutton-cli.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/applications/ibutton/ibutton-cli.cpp b/applications/ibutton/ibutton-cli.cpp index 1fbccdab..3c26f5ec 100644 --- a/applications/ibutton/ibutton-cli.cpp +++ b/applications/ibutton/ibutton-cli.cpp @@ -248,6 +248,8 @@ void onewire_cli_search(Cli* cli) { printf("Search started\r\n"); onewire.start(); + furi_hal_power_enable_otg(); + while(!done) { if(onewire.search(address, true) != 1) { printf("Search finished\r\n"); @@ -263,6 +265,8 @@ void onewire_cli_search(Cli* cli) { } delay(100); } + + furi_hal_power_disable_otg(); onewire.stop(); }