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 3cbb33a commit 3be08ecCopy full SHA for 3be08ec
Source/Devices/DigitalIO.cpp
@@ -117,11 +117,8 @@ void DigitalIO::processFrames()
117
uint64_t portState = *(dataPtr + dataOffset);
118
uint64_t buttonState = *(dataPtr + dataOffset + 1);
119
120
- if (portState != 0 || buttonState != 0)
121
- {
122
- uint64_t ttlEventWord = (portState & 0xFF) << 6 | (buttonState & 0x3F);
123
- eventWords.add(ttlEventWord);
124
- }
+ uint64_t ttlEventWord = (buttonState & 0x3F) << 8 | (portState & 0xFF);
+ eventWords.add(ttlEventWord);
125
126
oni_destroy_frame(frame);
127
}
0 commit comments