summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/Motion.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/displayapp/screens/Motion.cpp')
-rw-r--r--src/displayapp/screens/Motion.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/displayapp/screens/Motion.cpp b/src/displayapp/screens/Motion.cpp
index 2acfbae..601fbbf 100644
--- a/src/displayapp/screens/Motion.cpp
+++ b/src/displayapp/screens/Motion.cpp
@@ -72,9 +72,9 @@ void Motion::Refresh() {
double G = motionController.GXYZ(X,Y,Z);
// lv_chart_set_next(chart, ser2, motionController.Y());
// lv_chart_set_next(chart, ser3, motionController.Z());
- uint16_t current_time = xTaskGetTickCount();
+ TickType_t current_time = xTaskGetTickCount();
if (started) {
- uint16_t current_frame_ms = current_time - last_frame_time;
+ TickType_t current_frame_ms = current_time - last_frame_time;
double G_scaled = G * G_SCALE;
if (G_scaled < 1) {
if (!jumping) {
@@ -105,7 +105,7 @@ void Motion::Refresh() {
}
last_frame_time = current_time;
if (started) {
- if (current_time - last_redraw_frame_time < REDRAW_FRAME_TICKS) { return; }
+ if (((TickType_t)(current_time - last_redraw_frame_time)) < REDRAW_FRAME_TICKS) { return; }
} else {
started = true;
}