diff options
Diffstat (limited to 'tracker-hatire')
-rw-r--r-- | tracker-hatire/ftnoir_tracker_hat.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tracker-hatire/ftnoir_tracker_hat.h b/tracker-hatire/ftnoir_tracker_hat.h index 01b2afff..47f66812 100644 --- a/tracker-hatire/ftnoir_tracker_hat.h +++ b/tracker-hatire/ftnoir_tracker_hat.h @@ -5,6 +5,8 @@ #include "ftnoir_tracker_hat_settings.h" #include "ftnoir_arduino_type.h" +#include <atomic> + #include <QObject> #include <QPalette> #include <QtGui> @@ -41,7 +43,7 @@ private: int frame_cnt; - volatile int CptError; + std::atomic<int> CptError; static inline QByteArray to_latin1(const QString& str) { return str.toLatin1(); } }; |