diff --git a/util/include/rusefi/expected.h b/util/include/rusefi/expected.h index 00a846a..74d4b85 100644 --- a/util/include/rusefi/expected.h +++ b/util/include/rusefi/expected.h @@ -74,7 +74,10 @@ struct expected { // If both are invalid, they are equal if (!Valid && !other.Valid) { - return true; + if (Code == other.Code) { + return true; + } + return false; } // Both are guaranteed valid - simply compare values