diff options
| author | Michele Bini <michele.bini@gmail.com> | 2022-05-12 08:04:46 (GMT) |
|---|---|---|
| committer | Michele Bini <michele.bini@gmail.com> | 2022-05-12 08:05:18 (GMT) |
| commit | ac17ba2cd8f2da877c65ca85b5c83442ed039060 (patch) | |
| tree | e99db4d9f571a88f71976b94e0069e843b1e8293 | |
| parent | fc9769cd1fc694304e30e9ed7499d060411c1162 (diff) | |
avoid a source of dynamic allocations during firmware update
| -rw-r--r-- | src/displayapp/screens/FirmwareUpdate.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/displayapp/screens/FirmwareUpdate.cpp b/src/displayapp/screens/FirmwareUpdate.cpp index 154be4f..c20af38 100644 --- a/src/displayapp/screens/FirmwareUpdate.cpp +++ b/src/displayapp/screens/FirmwareUpdate.cpp @@ -82,7 +82,7 @@ void FirmwareUpdate::DisplayProgression() const { float total = bleController.FirmwareUpdateTotalBytes() / 1024.0f; int16_t pc = (current / total) * 100.0f; sprintf(percentStr, "%d %%", pc); - lv_label_set_text(percentLabel, percentStr); + lv_label_set_text_static(percentLabel, percentStr); lv_bar_set_value(bar1, pc, LV_ANIM_OFF); } |
