From: Keith Packard Date: Sun, 9 Apr 2017 19:53:34 +0000 (-0700) Subject: altos: Drive row low instead of high in matrix driver X-Git-Tag: 1.7~47 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=24cd5dd33ccf65c1b277911c460a89ec2b52e421 altos: Drive row low instead of high in matrix driver Driving it high won't work all that well as we're looking for zero bits. Signed-off-by: Keith Packard --- diff --git a/src/drivers/ao_matrix.c b/src/drivers/ao_matrix.c index e0f8ba75..fa2d0c57 100644 --- a/src/drivers/ao_matrix.c +++ b/src/drivers/ao_matrix.c @@ -89,9 +89,9 @@ _ao_matrix_read_cols(void) static uint8_t _ao_matrix_read(uint8_t row) { uint8_t state; - _ao_matrix_drive_row(row, 1); - state = _ao_matrix_read_cols(); _ao_matrix_drive_row(row, 0); + state = _ao_matrix_read_cols(); + _ao_matrix_drive_row(row, 1); return state; }