Hi Class,
When I do OTA I see progress evolve in the serial monitor according to the code below:
// Callback - Progress
Update.onProgress([](size_t progresso, size_t total) {
Serial.print(progresso * 100 / total);
});
But the 100% is relative to the maximum size of the selected partition (in my case ESP DEV MODULE). This way when the count % is at 52% (relative size of my code) it's already finished. To be more correct, I would like 100% to be relative to the maximum size of my code, so the count would end at 100%. It's not important but I'd like to know if it's possible and how the code would look.
Thanks