From b1849ccdd8b1d11944169575e3bdeb4d45211fee Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Thu, 10 Mar 2022 22:26:58 -0800 Subject: [PATCH] Move move frame interval into config --- include/Config.hpp | 4 +++- src/Main.cpp | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/Config.hpp b/include/Config.hpp index f8bbad4..43442b0 100644 --- a/include/Config.hpp +++ b/include/Config.hpp @@ -13,4 +13,6 @@ #define POINTS_1_LINE 40 #define POINTS_2_LINES 100 #define POINTS_3_LINES 300 -#define POINTS_4_LINES 1200 \ No newline at end of file +#define POINTS_4_LINES 1200 + +#define MOVE_FRAME_INTERVAL 125 \ No newline at end of file diff --git a/src/Main.cpp b/src/Main.cpp index 88f6cc7..670bb93 100644 --- a/src/Main.cpp +++ b/src/Main.cpp @@ -192,7 +192,7 @@ int main() update_clock.restart(); } - bool is_move_frame = move_clock.getElapsedTime().asMilliseconds() > 125; + bool is_move_frame = move_clock.getElapsedTime().asMilliseconds() > MOVE_FRAME_INTERVAL; if (is_move_frame) { move_clock.restart(); }