diff options
| author | Michele Bini <michele.bini@gmail.com> | 2022-04-05 00:43:29 (GMT) |
|---|---|---|
| committer | Michele Bini <michele.bini@gmail.com> | 2022-04-05 00:43:29 (GMT) |
| commit | 20a3b99a978790de692b24d7eb3d1fead3fedc5d (patch) | |
| tree | cac571dbee6a3053ef64ac6b4d7ecbab6c97a392 /src/displayapp/screens/Motion.h | |
| parent | 603d1f38ca3caad0abed2e884bb36504a71b623e (diff) | |
optionally compile without chart and optionally debug frame rate
Diffstat (limited to 'src/displayapp/screens/Motion.h')
| -rw-r--r-- | src/displayapp/screens/Motion.h | 14 |
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 }; } } |
