We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 33d2673 + 11bd636 commit 2a34e3bCopy full SHA for 2a34e3b
src/internal/RotarySwitch.h
@@ -45,7 +45,7 @@ namespace DcsBios {
45
lastState_ = state;
46
47
if (delta_ >= stepsPerDetent) {
48
- switchValue_ = min(switchValue_+1, maxSwichValue_);
+ switchValue_ = min((signed char)(switchValue_+1), maxSwichValue_);
49
char buf[7];
50
utoa(switchValue_, buf, 10);
51
if (tryToSendDcsBiosMessage(msg_, buf))
0 commit comments