Handle C3 ints

This commit is contained in:
Robert Strouse 2024-04-09 14:26:51 -07:00
parent 026f9315b1
commit 5a8c09ee9f
4 changed files with 7 additions and 7 deletions

View file

@ -427,10 +427,10 @@ void GitUpdater::emitDownloadProgress(uint8_t num, size_t total, size_t loaded,
JsonSockEvent *json = sockEmit.beginEmit(evt);
json->beginObject();
json->addElem("ver", this->targetRelease);
json->addElem("part", this->partition);
json->addElem("part", (int16_t)this->partition);
json->addElem("file", this->currentFile);
json->addElem("total", total);
json->addElem("loaded", loaded);
json->addElem("total", (uint32_t)total);
json->addElem("loaded", (uint32_t)loaded);
json->addElem("error", this->error);
json->endObject();
sockEmit.endEmit(num);