From bc1c01a1bc4d66c81f89fa0c268b048eb821b686 Mon Sep 17 00:00:00 2001 From: uye <99072975+ABA2396@users.noreply.github.com> Date: Fri, 2 Aug 2024 14:37:31 +0800 Subject: [PATCH] fix: fix smoking-test --- src/MaaCore/Controller/AdbController.cpp | 3 ++- src/MaaCore/Controller/MinitouchController.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/MaaCore/Controller/AdbController.cpp b/src/MaaCore/Controller/AdbController.cpp index 64395d5b57..0b636b4e0e 100644 --- a/src/MaaCore/Controller/AdbController.cpp +++ b/src/MaaCore/Controller/AdbController.cpp @@ -707,9 +707,10 @@ bool asst::AdbController::connect( callback(AsstMsg::ConnectionInfo, info); #ifdef ASST_DEBUG return false; -#endif +#else Log.error("config ", config, "not found"); adb_ret = Config.get_adb_cfg("General"); +#endif } const auto& adb_cfg = adb_ret.value(); diff --git a/src/MaaCore/Controller/MinitouchController.cpp b/src/MaaCore/Controller/MinitouchController.cpp index adcbc2053d..74a5927546 100644 --- a/src/MaaCore/Controller/MinitouchController.cpp +++ b/src/MaaCore/Controller/MinitouchController.cpp @@ -376,9 +376,10 @@ bool asst::MinitouchController::connect(const std::string& adb_path, const std:: callback(AsstMsg::ConnectionInfo, info); #ifdef ASST_DEBUG return false; -#endif +#else Log.error("config ", config, "not found"); adb_ret = Config.get_adb_cfg("General"); +#endif } const auto& adb_cfg = adb_ret.value();