Renamed digital to digit (#3219)

* renamed Digital to Digit

* added param migration

* Update .github/label-commenter-config.yaml

* renamed AnalogDigitTransition* to AnalogToDigitTransition*

---------

Co-authored-by: CaCO3 <caco@ruinelli.ch>
This commit is contained in:
CaCO3
2024-09-29 22:10:10 +02:00
committed by GitHub
parent 5496573369
commit f6bdd48bca
35 changed files with 228 additions and 236 deletions

View File

@@ -674,17 +674,17 @@ esp_err_t handler_wasserzaehler(httpd_req_t *req)
}
else
{
/* Digital ROIs */
/* Digit ROIs */
txt = "<body style=\"font-family: arial\">";
txt += "<hr><h3>Recognized Digit ROIs (previous round)</h3>\n";
txt += "<table style=\"border-spacing: 5px\"><tr style=\"text-align: center; vertical-align: top;\">\n";
std::vector<HTMLInfo *> htmlinfodig;
htmlinfodig = flowctrl.GetAllDigital();
htmlinfodig = flowctrl.GetAllDigit();
for (int i = 0; i < htmlinfodig.size(); ++i)
{
if (flowctrl.GetTypeDigital() == Digital)
if (flowctrl.GetTypeDigit() == Digit)
{
// Numbers greater than 10 and less than 0 indicate NaN, since a Roi can only have values from 0 to 9.
if ((htmlinfodig[i]->val >= 10) || (htmlinfodig[i]->val < 0))