From 2d5e6c4e1203a1760cdf08c14354b85649f48dee Mon Sep 17 00:00:00 2001 From: Jacob Alexander Date: Sun, 1 Dec 2013 14:52:54 -0500 Subject: [PATCH] Fixing the strobe count on the Kishsaver - Should fix the last of the phantom keys --- Scan/avr-capsense/scan_loop.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Scan/avr-capsense/scan_loop.c b/Scan/avr-capsense/scan_loop.c index da5b107..bec9d9d 100644 --- a/Scan/avr-capsense/scan_loop.c +++ b/Scan/avr-capsense/scan_loop.c @@ -220,7 +220,8 @@ inline void scan_setup() //#define TERMINAL_6110668_STROBE //#define UNSAVER_STROBE #ifdef KISHSAVER_STROBE - total_strobes = 10; + total_strobes = 8; + //total_strobes = 9; strobe_map[0] = 2; // Kishsaver doesn't use strobe 0 and 1 strobe_map[1] = 3; @@ -391,10 +392,9 @@ void scan_finishedWithUSBBuffer( uint8_t sentKeys ) inline void capsense_scan() { // TODO dfj code...needs commenting + cleanup... - uint8_t strober = 0; uint32_t full_av_acc = 0; - for (strober = 0; strober < total_strobes; ++strober) + for ( uint8_t strober = 0; strober < total_strobes; ++strober ) { uint8_t map_strobe = strobe_map[strober]; @@ -751,7 +751,6 @@ uint8_t testColumn( uint8_t strobe ) #define KEYSCAN_DEBOUNCE_DEBUG #ifdef KEYSCAN_DEBOUNCE_DEBUG // Debug message - // [:] : : : print("0x"); printHex_op( key, 2 ); print(" "); -- 2.39.2