From 7836876fcd7a5ba33ed5ee02aa7e76be3a3c7c89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D0=BB=D0=B8=D0=BC=D0=BE=D0=B2=20=D0=90=D0=BD=D0=B4?= =?UTF-8?q?=D1=80=D0=B5=D0=B9=20=D0=9D=D0=B8=D0=BA=D0=BE=D0=BB=D0=B0=D0=B5?= =?UTF-8?q?=D0=B2=D0=B8=D1=87?= Date: Mon, 30 Oct 2023 20:36:30 +0300 Subject: [PATCH] crosscompilation fix --- lighthub/main.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lighthub/main.cpp b/lighthub/main.cpp index abe69e8..79de49c 100644 --- a/lighthub/main.cpp +++ b/lighthub/main.cpp @@ -1253,7 +1253,10 @@ int cmdFunctionHelp(int arg_cnt, char **args) "'log [serial_loglevel] [udp_loglevel]' - define log level (0..7)\n" "'kill' - test watchdog\n" "'clear' - clear EEPROM\n" + +#ifndef OWIRE_DISABLE "'search' - search 1-wire dev\n" +#endif "'reboot' - reboot controller"); return 200; } @@ -1283,11 +1286,14 @@ int cmdFunctionReboot(int arg_cnt, char **args) { return 500; } +#ifndef OWIRE_DISABLE + int cmdFunctionSearch(int arg_cnt, char **args) { //infoSerial<