summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/Motion.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/displayapp/screens/Motion.h')
-rw-r--r--src/displayapp/screens/Motion.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/displayapp/screens/Motion.h b/src/displayapp/screens/Motion.h
index 421bf4d..761d90b 100644
--- a/src/displayapp/screens/Motion.h
+++ b/src/displayapp/screens/Motion.h
@@ -9,6 +9,9 @@
#include <components/motor/MotorController.h>
#include <components/motion/MotionController.h>
+#define DEBUG_JUMPSCORE_APP 1
+#define JUMPSCORE_NO_CHART 1
+
namespace Pinetime {
namespace Applications {
namespace Screens {
@@ -37,16 +40,23 @@ namespace Pinetime {
};
Record records[5] = { {-1}, {-1}, {-1}, {-1}, {-1} };
char labelText[6] = { '0', '0', '0', '0', '0', 0 };
+#ifndef JUMPSCORE_NO_CHART
lv_obj_t* chart;
lv_chart_series_t* ser1;
- lv_chart_series_t* ser2;
- lv_chart_series_t* ser3;
+#endif
lv_obj_t* label;
lv_obj_t* recordLabel;
lv_obj_t* lastLabel;
lv_obj_t* labelStep;
lv_task_t* taskRefresh;
+#ifdef DEBUG_JUMPSCORE_APP
+ lv_obj_t* infoLabel;
+ int32_t frame_count = 0;
+ int32_t max_frame_ms = 0;
+ int32_t avg_frame_ms = 0;
+ int32_t total_frames_ms = 0;
+#endif
};
}
}