Skip to content

Commit

Permalink
Update ClassFlowCNNGeneral.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
SybexX authored Dec 21, 2024
1 parent 576b36e commit 62bcc67
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions code/components/jomjol_flowcontroll/ClassFlowCNNGeneral.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,17 @@ string ClassFlowCNNGeneral::getReadout(int _analog = 0, bool _extendedResolution
else {
prev = PointerEvalHybridNew(GENERAL[_analog]->ROI[GENERAL[_analog]->ROI.size() - 1]->result_float, prev, prev);
}
result = std::to_string(prev);
LogFile.WriteToFile(ESP_LOG_DEBUG, TAG, "getReadout(dig100) prev=" + std::to_string(prev));

if ((prev >= 0) && (prev < 10)) {
result = std::to_string(prev);
LogFile.WriteToFile(ESP_LOG_DEBUG, TAG, "getReadout(dig100) prev=" + std::to_string(prev));
}
else {
result = "N";
if (_extendedResolution && (CNNType != Digit)) {
result = "NN";
}
}
}
}
else {
Expand Down

0 comments on commit 62bcc67

Please sign in to comment.