Skip to content

Commit 3cbb33a

Browse files
committed
Convert bitmask value to hexadecimal
1 parent 255f1e4 commit 3cbb33a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Devices/DigitalIO.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ void DigitalIO::processFrames()
119119

120120
if (portState != 0 || buttonState != 0)
121121
{
122-
uint64_t ttlEventWord = (portState & 255) << 6 | (buttonState & 63);
122+
uint64_t ttlEventWord = (portState & 0xFF) << 6 | (buttonState & 0x3F);
123123
eventWords.add(ttlEventWord);
124124
}
125125

0 commit comments

Comments
 (0)