diff options
| author | Keith Packard <keithp@keithp.com> | 2017-04-09 12:53:34 -0700 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2017-04-09 12:53:34 -0700 | 
| commit | 24cd5dd33ccf65c1b277911c460a89ec2b52e421 (patch) | |
| tree | f5f1f8a79bed350ce32a451b855159a4f2f0df80 | |
| parent | a68fb412589819980759d49565a084b23eee8b8f (diff) | |
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 <keithp@keithp.com>
| -rw-r--r-- | src/drivers/ao_matrix.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| 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;  } | 
