From f26ff42745912a19edbf7ce806ff8c13b9d40609 Mon Sep 17 00:00:00 2001 From: Hesky Fisher Date: Thu, 10 Apr 2014 09:04:17 -0400 Subject: [PATCH] Fix mapping of -Z --- StenoFW.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/StenoFW.ino b/StenoFW.ino index 97b65db..e355a32 100644 --- a/StenoFW.ino +++ b/StenoFW.ino @@ -262,7 +262,7 @@ void sendChordTxBolt() { // byte 1 // S- - if (currentChord[0][0] || currentChord[1][0]) chordBytes[0] |= B00000001; + if (currentChord[0][0] || currentChord[1][0]) chordBytes[index] |= B00000001; // T- if (currentChord[0][1]) chordBytes[index] |= B00000010; // K- @@ -316,7 +316,7 @@ void sendChordTxBolt() { // -D if (currentChord[3][4]) chordBytes[index] |= B11000100; // -Z - if (currentChord[4][3]) chordBytes[index] |= B11001000; + if (currentChord[4][4]) chordBytes[index] |= B11001000; // # if (currentChord[2][4]) chordBytes[index] |= B11010000; // Increment the index if the current byte has any keys set.