Mercurial > louis > kiibohd-controller
changeset 98:0271d9f93ffd
Fixing the strobe count on the Kishsaver
- Should fix the last of the phantom keys
author | Jacob Alexander <triplehaata@gmail.com> |
---|---|
date | Sun, 01 Dec 2013 14:52:54 -0500 |
parents | 492a32843639 |
children | 6cdbd3f73785 |
files | Scan/avr-capsense/scan_loop.c |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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 - // <key> [<strobe>:<mux>] : <sense val> : <delta + threshold> : <margin> print("0x"); printHex_op( key, 2 ); print(" ");