From a83bca995bf560491c3ccc226d5a12d0f92a7e4e Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Fri, 26 Jul 2024 18:23:37 +0200 Subject: [PATCH] typo --- src/console.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/console.cpp b/src/console.cpp index b9820008c..0feefd403 100644 --- a/src/console.cpp +++ b/src/console.cpp @@ -578,7 +578,7 @@ static void setup_commands(std::shared_ptr & commands) { serializeJsonPretty(doc, shell); shell.println(); return; - } else if (has_data) { + } else if (!has_data) { // show message if no data returned (e.g. for analogsensor, temperaturesensor, custom) shell.println("Command executed. Check log for messages."); return;