diff options
author | Joel Challis <git@zvecr.com> | 2020-12-18 17:28:29 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-18 17:28:29 +0000 |
commit | a9f7d4dccc9cd0351658e64d5fbc809c93ac9b46 (patch) | |
tree | bfaaaf23c39f4ab72541309592e6f162b9ba4d06 /keyboards/butterstick/sten.h | |
parent | 6ea4b06f9fc19825605477cdc27f5bec0f3dc0a9 (diff) | |
download | qmk_firmware-a9f7d4dccc9cd0351658e64d5fbc809c93ac9b46.tar.gz qmk_firmware-a9f7d4dccc9cd0351658e64d5fbc809c93ac9b46.zip |
Various compilation fixes for avr-gcc 10 (#9269)
Diffstat (limited to 'keyboards/butterstick/sten.h')
-rw-r--r-- | keyboards/butterstick/sten.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/keyboards/butterstick/sten.h b/keyboards/butterstick/sten.h index 84635a554c..0d5c58df21 100644 --- a/keyboards/butterstick/sten.h +++ b/keyboards/butterstick/sten.h @@ -15,7 +15,6 @@ extern size_t keymapsCount; // Total keymaps extern uint32_t cChord; // Current Chord extern uint32_t stenoLayers[]; // Chords that simulate QMK layers extern size_t stenoLayerCount; // Number of simulated layers -uint32_t refChord; // Reference chord for PC macro // Function defs void processChord(bool useFakeSteno); @@ -35,7 +34,7 @@ void CLICK_MOUSE(uint8_t); #define P(chord, act) if (cChord == (chord)) { if (!lookup) {act;} return chord;} #define PC(chord, act) if (cChord == (chord)) { if (!lookup) {act;} return chord;} \ for(int i = 0; i < stenoLayerCount; i++) { \ - refChord = stenoLayers[i] | chord; \ + uint32_t refChord = stenoLayers[i] | chord; \ if (cChord == (refChord)) { if (!lookup) {act;} return refChord;}; \ } |