Use integer type for item count instead of char

This commit is contained in:
Christian Göttsche
2020-10-29 23:17:12 +01:00
committed by cgzones
parent 59ef15b2ad
commit 43d274a617
3 changed files with 6 additions and 9 deletions

View File

@ -51,8 +51,7 @@ static void CPUMeter_updateValues(Meter* this, char* buffer, int size) {
int cpu = this->param;
if (cpu > this->pl->cpuCount) {
xSnprintf(buffer, size, "absent");
int items = this->curItems;
for (int i = 0; i < items; i++)
for (uint8_t i = 0; i < this->curItems; i++)
this->values[i] = 0;
return;
}