From cfa2c3079a2ec20a59b7918ff1f35e873fbdf9ad Mon Sep 17 00:00:00 2001 From: momeppkt Date: Wed, 30 Jul 2025 17:12:37 +0700 Subject: [PATCH] fix: compile error on ESP crosstool-NG (gcc version 14.2.0) remove unnecessary if statement as loop naturally exits when i reaches 32 --- src/GDXLib.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GDXLib.cpp b/src/GDXLib.cpp index bec7a66..327c0fb 100644 --- a/src/GDXLib.cpp +++ b/src/GDXLib.cpp @@ -778,7 +778,7 @@ byte GDXLib::GDX_getDefaultSensor() if (testMask & defaultMask & availableMask) return i;//use the default channel testMask = testMask << 1; } - if (i == 32) return 1; //if this did not work, just return 1 as the default + return 1; //if this did not work, just return 1 as the default } //=============================================================================