瀏覽代碼

Fix some declarations

old_master
Kai Ryu 9 年之前
父節點
當前提交
dd24f12fe1
共有 1 個文件被更改,包括 3 次插入8 次删除
  1. 3
    8
      keyboard/tentapad/matrix.c

+ 3
- 8
keyboard/tentapad/matrix.c 查看文件

@@ -36,12 +36,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef DEBOUNCE
# define DEBOUNCE 5
#endif
static uint8_t debouncing = DEBOUNCE;
static uint16_t debouncing_last[MATRIX_COLS];

/* matrix state(1:on, 0:off) */
static matrix_row_t matrix;
static matrix_row_t matrix_debouncing;
static matrix_row_t matrix = 0;
static matrix_row_t debouncing = 0;
static uint16_t debouncing_last[MATRIX_COLS];

static matrix_row_t read_cols(void);
static void init_cols(void);
@@ -86,10 +85,6 @@ void matrix_init(void)

// initialize cols
init_cols();

// initialize matrix state: all keys off
matrix = 0;
matrix_debouncing = 0;
}

uint8_t matrix_scan(void)