We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd55086 commit b99cfdaCopy full SHA for b99cfda
Firmware/RTK_Surveyor/menuFirmware.ino
@@ -626,10 +626,15 @@ void otaUpdate()
626
627
// Called while the OTA Pull update is happening
628
void otaPullCallback(int bytesWritten, int totalLength)
629
+{
630
+ otaDisplayPercentage(bytesWritten, totalLength, false);
631
+}
632
+
633
+void otaDisplayPercentage(int bytesWritten, int totalLength, bool alwaysDisplay)
634
{
635
static int previousPercent = -1;
636
int percent = 100 * bytesWritten / totalLength;
- if (percent != previousPercent)
637
+ if (alwaysDisplay || (percent != previousPercent))
638
639
// Indicate progress
640
int barWidthInCharacters = 20; // Width of progress bar, ie [###### % complete
0 commit comments