mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-10 13:36:54 +03:00
Improve SetPrevalue
This commit is contained in:
@@ -397,7 +397,7 @@ string ClassFlowControll::GetPrevalue(std::string _number)
|
|||||||
return flowpostprocessing->GetPreValue(_number);
|
return flowpostprocessing->GetPreValue(_number);
|
||||||
}
|
}
|
||||||
|
|
||||||
return std::string();
|
return std::string("");
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string ClassFlowControll::UpdatePrevalue(std::string _newvalue, std::string _numbers, bool _extern)
|
std::string ClassFlowControll::UpdatePrevalue(std::string _newvalue, std::string _numbers, bool _extern)
|
||||||
|
|||||||
@@ -86,6 +86,9 @@ string ClassFlowPostProcessing::GetPreValue(std::string _number)
|
|||||||
if (NUMBERS[i]->name == _number)
|
if (NUMBERS[i]->name == _number)
|
||||||
index = i;
|
index = i;
|
||||||
|
|
||||||
|
if (index == -1)
|
||||||
|
return std::string("");
|
||||||
|
|
||||||
result = RundeOutput(NUMBERS[index]->PreValue, NUMBERS[index]->Nachkomma);
|
result = RundeOutput(NUMBERS[index]->PreValue, NUMBERS[index]->Nachkomma);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Reference in New Issue
Block a user