Fix 1<col
instead of 1<<col
typo in matrix_is_on()
This commit is contained in:
parent
4d9b11af14
commit
6d2071ad6e
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user