aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/georgi/sten.c
diff options
context:
space:
mode:
authorJeremy Bernhardt <jeremythegeek@gmail.com>2019-05-17 14:02:22 -0600
committerDrashna Jaelre <drashna@live.com>2019-05-17 13:02:22 -0700
commitd0c9ad6433d6ed30e8076fd26c8551f579cb08c8 (patch)
tree87d2613ede768cce431b54b78f2274310f520388 /keyboards/georgi/sten.c
parent7a0174f871792c62fdd1b737f2dc9db753695245 (diff)
downloadfirmware-d0c9ad6433d6ed30e8076fd26c8551f579cb08c8.tar.gz
firmware-d0c9ad6433d6ed30e8076fd26c8551f579cb08c8.tar.bz2
firmware-d0c9ad6433d6ed30e8076fd26c8551f579cb08c8.zip
[Keyboard] Georgi improvements (#5899)
* Georgi improvements * The writing was in the -Wall
Diffstat (limited to 'keyboards/georgi/sten.c')
-rw-r--r--keyboards/georgi/sten.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/keyboards/georgi/sten.c b/keyboards/georgi/sten.c
index 1a84c7893..197abaf92 100644
--- a/keyboards/georgi/sten.c
+++ b/keyboards/georgi/sten.c
@@ -11,6 +11,18 @@ uint32_t pChord = 0; // Previous Chord
int pChordIndex = 0; // Keys in previousachord
uint32_t pChordState[32]; // Previous chord sate
uint32_t stickyBits = 0; // Or'd with every incoming press
+#ifndef NO_DEBUG
+char debugMsg[32];
+#endif
+
+// StenoLayer
+uint32_t releasedChord = 0; // Keys released from current chord
+uint32_t tChord = 0; // Protects state of cChord
+
+#ifndef STENOLAYERS
+uint32_t stenoLayers[] = { PWR };
+size_t stenoLayerCount = sizeof(stenoLayers)/sizeof(stenoLayers[0]);
+#endif
// Mode state
enum MODE { STENO = 0, QWERTY, COMMAND };