fix return value from first step if value not valid return result value with error code

This commit is contained in:
vlad 2025-02-20 00:19:49 +03:00 committed by rusefillc
parent 405b5bdc79
commit 8bffcbc258
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ public:
if (currentStep.Valid) { if (currentStep.Valid) {
return TBase::convert(currentStep.Value); return TBase::convert(currentStep.Value);
} else { } else {
return unexpected; return SensorResult(currentStep.Code);
} }
} }