summaryrefslogtreecommitdiffhomepage
path: root/tracker-hatire
diff options
context:
space:
mode:
Diffstat (limited to 'tracker-hatire')
-rw-r--r--tracker-hatire/ftnoir_tracker_hat.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tracker-hatire/ftnoir_tracker_hat.cpp b/tracker-hatire/ftnoir_tracker_hat.cpp
index ca28ae84..6e1b6586 100644
--- a/tracker-hatire/ftnoir_tracker_hat.cpp
+++ b/tracker-hatire/ftnoir_tracker_hat.cpp
@@ -144,7 +144,7 @@ void hatire::data(double *data)
{ s.EnableRoll, s.InvertRoll, HAT.Rot[s.RollAxis], data[Roll] },
};
- for (unsigned i = 0; i < sizeof(spec) / sizeof(*spec); i++)
+ for (unsigned i = 0; i < std::size(spec); i++)
{
auto& k = spec[i];
k.place = (k.sign ? -1.f : 1.f) * (k.enable ? k.input : 0.f);