diff options
| author | Michele Bini <michele.bini@gmail.com> | 2022-04-01 21:58:17 (GMT) |
|---|---|---|
| committer | Michele Bini <michele.bini@gmail.com> | 2022-04-01 21:58:17 (GMT) |
| commit | acc73091e7b66109c4b8cd044bd57794b8ce4310 (patch) | |
| tree | 50513aebd4c0e8b83f5e13475c83e5c744fb3214 | |
| parent | 035ecb26687a4c5b3ba1080a4249b3e0b9f0b2b1 (diff) | |
display fix; better scale
| -rw-r--r-- | src/displayapp/screens/Motion.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/displayapp/screens/Motion.cpp b/src/displayapp/screens/Motion.cpp index 3ac9f73..3ceac47 100644 --- a/src/displayapp/screens/Motion.cpp +++ b/src/displayapp/screens/Motion.cpp @@ -14,7 +14,7 @@ #define REDRAW_FRAME_HZ 40 #define REDRAW_FRAME_MS (1000 / REDRAW_FRAME_HZ) #define REDRAW_FRAME_TICKS (REDRAW_FRAME_MS / APX_TICK_PERIOD_MS) -#define G_SCALE 0.001 +#define G_SCALE (9.8*0.001) using namespace Pinetime::Applications::Screens; @@ -95,7 +95,6 @@ void Motion::Refresh() { records[3] = records[2]; records[2] = records[1]; records[1] = records[0]; - best_jump_length = current_jump_length; records[0].jump_length = current_jump_length; new_record = 1; } @@ -117,7 +116,7 @@ void Motion::Refresh() { labelText[3] = '0'+(G_uint16%10); G_uint16 /= 10; labelText[2] = '0'+(G_uint16%10); G_uint16 /= 10; labelText[1] = '0'+(G_uint16%10); G_uint16 /= 10; - labelText[0] = '0'+G; G /= 10; + labelText[0] = '0'+G_uint16 lv_label_set_text_static(label, labelText); if (jump_started_or_ended) { if (new_record) { |
