Didn't mark `getRightAnalog` as `const`
RechieKho opened this issue · 3 comments
RechieKho commented
So, on line 1186
,
boolean getRightAnalog (byte& x, byte& y) {
x = rx;
y = ry;
return analogSticksValid;
}
I believe you forgot to mark const
.
Since the getLeftAnalog
marked const
(on line 1165
),
boolean getLeftAnalog (byte& x, byte& y) const {
x = lx;
y = ly;
return analogSticksValid;
}
So I believe it is a bug.
SukkoPera commented
Good catch! Doesn't cause any issue but it's still an oversight, I will fix it (one day).
RechieKho commented
Hopefully that one day is today 👌
SukkoPera commented
Well yes, with a PR everything is easier :). Thanks a lot!