diff options
| author | Michele Bini <michele.bini@gmail.com> | 2022-04-01 23:04:19 (GMT) |
|---|---|---|
| committer | Michele Bini <michele.bini@gmail.com> | 2022-04-01 23:04:19 (GMT) |
| commit | 1ec274923f1310ec9ee2ca4c599f8d92a3018c53 (patch) | |
| tree | 8228b88db28ad322f825029a4c846167d6a52ea9 | |
| parent | b9f3e0d8bdb4ed02a9364fe1d025e441dc7c8ded (diff) | |
Fix display of record
| -rw-r--r-- | src/displayapp/screens/Motion.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/displayapp/screens/Motion.cpp b/src/displayapp/screens/Motion.cpp index 6a0b543..fd6650e 100644 --- a/src/displayapp/screens/Motion.cpp +++ b/src/displayapp/screens/Motion.cpp @@ -133,7 +133,7 @@ void Motion::Refresh() { double best_jump_length = records[0].jump_length; if (current_jump_length * 100 > best_jump_length) { uint32_t a = (current_jump_length*100000.0); - lv_label_set_text_fmt(recordLabel, "%d.%03d", a/1000, a%1000); + lv_label_set_text_fmt(lastLabel, "%d.%03d", a/1000, a%1000); if (!new_record && current_jump_length > 0.05) { motorController.RunForDuration(11); } |
