[Build] Fix sort custom vars on ESP8266

ESP8266 needs all return paths of the lambda function to be exactly the same type.
Thus the `operator<` of `String` needs to be cast to a bool as it would otherwise be an `unsigned char` .
This commit is contained in:
TD-er
2026-06-07 22:18:23 +02:00
committed by GitHub
parent 41347de1ec
commit 673f5bbdc3
+1 -1
View File
@@ -57,7 +57,7 @@ void handle_sysvars() {
const int32_t ai = a.toInt();
const int32_t bi = b.toInt();
if (!ai && !bi) { return a < b; } // a..z
if (!ai && !bi) { return !!(a < b); } // a..z , need to cast to bool for ESP8266
if (!ai) { return false; } // Alphanum after num
return ai < bi; // Numerical order