diff options
| author | Graham Jones <grahamjones139@gmail.com> | 2024-02-11 19:46:26 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-11 20:46:26 +0100 |
| commit | c2c53bc6abdcc0a81df860101df51ebfc43df308 (patch) | |
| tree | 6af4690bd90da31c18efdee46b90415759d8ec5a /src/displayapp/screens/Motion.cpp | |
| parent | a49dc15a6e29022606289a02573cf567dad04114 (diff) | |
bma421: Change acceleration values to 'binary milli-G' units
Co-authored-by: FintasticMan <finlay.neon.kid@gmail.com>
Diffstat (limited to 'src/displayapp/screens/Motion.cpp')
| -rw-r--r-- | src/displayapp/screens/Motion.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/displayapp/screens/Motion.cpp b/src/displayapp/screens/Motion.cpp index 87c55eea..ecbed317 100644 --- a/src/displayapp/screens/Motion.cpp +++ b/src/displayapp/screens/Motion.cpp @@ -53,9 +53,9 @@ void Motion::Refresh() { lv_label_set_text_fmt(labelStep, "Steps %lu", motionController.NbSteps()); lv_label_set_text_fmt(label, - "X #FF0000 %d# Y #00B000 %d# Z #FFFF00 %d#", - motionController.X() / 0x10, - motionController.Y() / 0x10, - motionController.Z() / 0x10); + "X #FF0000 %d# Y #00B000 %d# Z #FFFF00 %d# mg", + motionController.X(), + motionController.Y(), + motionController.Z()); lv_obj_align(label, nullptr, LV_ALIGN_IN_TOP_MID, 0, 10); } |
