# HG changeset patch # User Jacob Alexander # Date 1385927574 18000 # Node ID 0271d9f93ffdbd3bf109f7526628e9c00f31a834 # Parent 492a328436390b2549901423351e0094e12a7ef3 Fixing the strobe count on the Kishsaver - Should fix the last of the phantom keys diff -r 492a32843639 -r 0271d9f93ffd Scan/avr-capsense/scan_loop.c --- a/Scan/avr-capsense/scan_loop.c Wed Nov 27 13:33:26 2013 -0500 +++ b/Scan/avr-capsense/scan_loop.c Sun Dec 01 14:52:54 2013 -0500 @@ -220,7 +220,8 @@ //#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 @@ 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 @@ #define KEYSCAN_DEBOUNCE_DEBUG #ifdef KEYSCAN_DEBOUNCE_DEBUG // Debug message - // [:] : : : print("0x"); printHex_op( key, 2 ); print(" ");