Fix 1<col instead of 1<<col typo in matrix_is_on()

This commit is contained in:
James Churchill 2019-01-27 16:30:25 +10:00 committed by Drashna Jaelre
parent 4d9b11af14
commit 6d2071ad6e
17 changed files with 32 additions and 32 deletions

View File

@ -134,7 +134,7 @@ uint8_t matrix_scan(void)
inline inline
bool matrix_is_on(uint8_t row, uint8_t col) bool matrix_is_on(uint8_t row, uint8_t col)
{ {
return (matrix[row] & ((matrix_row_t)1<col)); return (matrix[row] & ((matrix_row_t)1<<col));
} }
inline inline

View File

@ -138,7 +138,7 @@ uint8_t matrix_scan(void)
inline inline
bool matrix_is_on(uint8_t row, uint8_t col) bool matrix_is_on(uint8_t row, uint8_t col)
{ {
return (matrix[row] & ((matrix_row_t)1<col)); return (matrix[row] & ((matrix_row_t)1<<col));
} }
inline inline

View File

@ -124,7 +124,7 @@ uint8_t matrix_scan(void)
inline inline
bool matrix_is_on(uint8_t row, uint8_t col) bool matrix_is_on(uint8_t row, uint8_t col)
{ {
return (matrix[row] & ((matrix_row_t)1<col)); return (matrix[row] & ((matrix_row_t)1<<col));
} }
inline inline

View File

@ -124,7 +124,7 @@ uint8_t matrix_scan(void)
inline inline
bool matrix_is_on(uint8_t row, uint8_t col) bool matrix_is_on(uint8_t row, uint8_t col)
{ {
return (matrix[row] & ((matrix_row_t)1<col)); return (matrix[row] & ((matrix_row_t)1<<col));
} }
inline inline

View File

@ -218,7 +218,7 @@ bool matrix_is_modified(void)
inline inline
bool matrix_is_on(uint8_t row, uint8_t col) bool matrix_is_on(uint8_t row, uint8_t col)
{ {
return (matrix[row] & ((matrix_row_t)1<col)); return (matrix[row] & ((matrix_row_t)1<<col));
} }
inline inline

View File

@ -258,7 +258,7 @@ bool matrix_is_modified(void)
inline inline
bool matrix_is_on(uint8_t row, uint8_t col) bool matrix_is_on(uint8_t row, uint8_t col)
{ {
return (matrix[row] & ((matrix_row_t)1<col)); return (matrix[row] & ((matrix_row_t)1<<col));
} }
inline inline

View File

@ -218,7 +218,7 @@ bool matrix_is_modified(void)
inline inline
bool matrix_is_on(uint8_t row, uint8_t col) bool matrix_is_on(uint8_t row, uint8_t col)
{ {
return (matrix[row] & ((matrix_row_t)1<col)); return (matrix[row] & ((matrix_row_t)1<<col));
} }
inline inline

View File

@ -218,7 +218,7 @@ bool matrix_is_modified(void)
inline inline
bool matrix_is_on(uint8_t row, uint8_t col) bool matrix_is_on(uint8_t row, uint8_t col)
{ {
return (matrix[row] & ((matrix_row_t)1<col)); return (matrix[row] & ((matrix_row_t)1<<col));
} }
inline inline

View File

@ -198,7 +198,7 @@ uint8_t matrix_scan(void)
inline inline
bool matrix_is_on(uint8_t row, uint8_t col) bool matrix_is_on(uint8_t row, uint8_t col)
{ {
return (matrix[row] & ((matrix_row_t)1<col)); return (matrix[row] & ((matrix_row_t)1<<col));
} }
inline inline

View File

@ -167,7 +167,7 @@ inline
bool matrix_is_on(uint8_t row, uint8_t col) bool matrix_is_on(uint8_t row, uint8_t col)
{ {
return (matrix[row] & ((matrix_row_t)1<col)); return (matrix[row] & ((matrix_row_t)1<<col));
} }
inline inline

View File

@ -97,7 +97,7 @@ uint8_t matrix_scan(void)
inline inline
bool matrix_is_on(uint8_t row, uint8_t col) bool matrix_is_on(uint8_t row, uint8_t col)
{ {
return (matrix[row] & ((matrix_row_t)1<col)); return (matrix[row] & ((matrix_row_t)1<<col));
} }
inline inline

View File

@ -112,7 +112,7 @@ uint8_t matrix_scan(void)
inline inline
bool matrix_is_on(uint8_t row, uint8_t col) bool matrix_is_on(uint8_t row, uint8_t col)
{ {
return (matrix[row] & ((matrix_row_t)1<col)); return (matrix[row] & ((matrix_row_t)1<<col));
} }
inline inline

View File

@ -125,7 +125,7 @@ uint8_t matrix_scan(void)
inline inline
bool matrix_is_on(uint8_t row, uint8_t col) bool matrix_is_on(uint8_t row, uint8_t col)
{ {
return (matrix[row] & ((matrix_row_t)1<col)); return (matrix[row] & ((matrix_row_t)1<<col));
} }
inline inline

View File

@ -132,7 +132,7 @@ uint8_t matrix_scan(void)
inline inline
bool matrix_is_on(uint8_t row, uint8_t col) bool matrix_is_on(uint8_t row, uint8_t col)
{ {
return (matrix[row] & ((matrix_row_t)1<col)); return (matrix[row] & ((matrix_row_t)1<<col));
} }
inline inline

View File

@ -190,7 +190,7 @@ bool matrix_is_modified(void)
inline inline
bool matrix_is_on(uint8_t row, uint8_t col) bool matrix_is_on(uint8_t row, uint8_t col)
{ {
return (matrix[row] & ((matrix_row_t)1<col)); return (matrix[row] & ((matrix_row_t)1<<col));
} }
inline inline

View File

@ -134,7 +134,7 @@ uint8_t matrix_scan(void)
inline inline
bool matrix_is_on(uint8_t row, uint8_t col) bool matrix_is_on(uint8_t row, uint8_t col)
{ {
return (matrix[row] & ((matrix_row_t)1<col)); return (matrix[row] & ((matrix_row_t)1<<col));
} }
inline inline

View File

@ -184,7 +184,7 @@ bool matrix_is_modified(void)
inline inline
bool matrix_is_on(uint8_t row, uint8_t col) bool matrix_is_on(uint8_t row, uint8_t col)
{ {
return (matrix[row] & ((matrix_row_t)1<col)); return (matrix[row] & ((matrix_row_t)1<<col));
} }
inline inline