fix return value from first step if value not valid return result value with error code
This commit is contained in:
parent
405b5bdc79
commit
8bffcbc258
|
@ -47,7 +47,7 @@ public:
|
|||
if (currentStep.Valid) {
|
||||
return TBase::convert(currentStep.Value);
|
||||
} else {
|
||||
return unexpected;
|
||||
return SensorResult(currentStep.Code);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue