Skip to content

Commit 2a34e3b

Browse files
Merge pull request #17 from talbotmcinnis/ExpandedSTM32Support
Fix SparkFun::STM32 compilation issue
2 parents 33d2673 + 11bd636 commit 2a34e3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/internal/RotarySwitch.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ namespace DcsBios {
4545
lastState_ = state;
4646

4747
if (delta_ >= stepsPerDetent) {
48-
switchValue_ = min(switchValue_+1, maxSwichValue_);
48+
switchValue_ = min((signed char)(switchValue_+1), maxSwichValue_);
4949
char buf[7];
5050
utoa(switchValue_, buf, 10);
5151
if (tryToSendDcsBiosMessage(msg_, buf))

0 commit comments

Comments
 (0)