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.
1 parent f79f645 commit 0dfb2fcCopy full SHA for 0dfb2fc
src/internal/DualModeButton.h
@@ -30,11 +30,11 @@ namespace DcsBios {
30
if(mode != lastMode_)
31
{
32
// Switched seat. If we had a button held, make sure to release it
33
- if( lastState_ )
+ if( lastState_ == LOW)
34
35
tryToSendDcsBiosMessage(lastMode_?msgMode2_:msgMode1_, "0");
36
lastMode_ = mode;
37
- lastState_ = 0;
+ lastState_ = HIGH;
38
}
39
40
0 commit comments