Fix some declarations
This commit is contained in:
parent
a620f83116
commit
3ffd875c4a
@ -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)
|
||||
|
Reference in New Issue
Block a user