diff options
Diffstat (limited to 'src/displayapp/screens/Motion.cpp')
| -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) { |
