Browse Source

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

pull/4971/head 0.6.258
James Churchill 5 years ago
committed by Drashna Jaelre
parent
commit
6d2071ad6e
17 changed files with 32 additions and 32 deletions
  1. +2
    -2
      keyboards/chimera_ergo/matrix.c
  2. +2
    -2
      keyboards/chimera_ls/matrix.c
  3. +2
    -2
      keyboards/chimera_ortho/matrix.c
  4. +2
    -2
      keyboards/comet46/matrix.c
  5. +1
    -1
      keyboards/dc01/arrow/matrix.c
  6. +4
    -4
      keyboards/dc01/left/matrix.c
  7. +1
    -1
      keyboards/dc01/numpad/matrix.c
  8. +1
    -1
      keyboards/dc01/right/matrix.c
  9. +1
    -1
      keyboards/dichotomy/matrix.c
  10. +1
    -1
      keyboards/handwired/promethium/matrix.c
  11. +1
    -1
      keyboards/kmac/matrix.c
  12. +1
    -1
      keyboards/kmini/matrix.c
  13. +2
    -2
      keyboards/mitosis/matrix.c
  14. +4
    -4
      keyboards/redox_w/matrix.c
  15. +4
    -4
      keyboards/sx60/matrix.c
  16. +2
    -2
      keyboards/telophase/matrix.c
  17. +1
    -1
      quantum/matrix.c

+ 2
- 2
keyboards/chimera_ergo/matrix.c View File

@ -112,7 +112,7 @@ uint8_t matrix_scan(void)
if (timeout > 10000){
break;
}
}
}
uart_data[i] = SERIAL_UART_DATA;
}
@ -134,7 +134,7 @@ uint8_t matrix_scan(void)
inline
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


+ 2
- 2
keyboards/chimera_ls/matrix.c View File

@ -116,7 +116,7 @@ uint8_t matrix_scan(void)
if (timeout > 10000){
break;
}
}
}
uart_data[i] = SERIAL_UART_DATA;
}
@ -138,7 +138,7 @@ uint8_t matrix_scan(void)
inline
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


+ 2
- 2
keyboards/chimera_ortho/matrix.c View File

@ -102,7 +102,7 @@ uint8_t matrix_scan(void)
if (timeout > 10000){
break;
}
}
}
uart_data[i] = SERIAL_UART_DATA;
}
@ -124,7 +124,7 @@ uint8_t matrix_scan(void)
inline
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


+ 2
- 2
keyboards/comet46/matrix.c View File

@ -102,7 +102,7 @@ uint8_t matrix_scan(void)
if (timeout > 10000){
break;
}
}
}
uart_data[i] = SERIAL_UART_DATA;
}
@ -124,7 +124,7 @@ uint8_t matrix_scan(void)
inline
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


+ 1
- 1
keyboards/dc01/arrow/matrix.c View File

@ -218,7 +218,7 @@ bool matrix_is_modified(void)
inline
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


+ 4
- 4
keyboards/dc01/left/matrix.c View File

@ -158,7 +158,7 @@ void matrix_init(void) {
matrix[i] = 0;
matrix_debouncing[i] = 0;
}
matrix_init_quantum();
}
@ -209,7 +209,7 @@ uint8_t matrix_scan(void)
debouncing = false;
}
# endif
if (i2c_transaction(SLAVE_I2C_ADDRESS_RIGHT, 0x3F, 0)){ //error has occured for main right half
error_count_right++;
if (error_count_right > ERROR_DISCONNECT_COUNT){ //disconnect half
@ -220,7 +220,7 @@ uint8_t matrix_scan(void)
}else{ //no error
error_count_right = 0;
}
if (i2c_transaction(SLAVE_I2C_ADDRESS_ARROW, 0X3FFF, 8)){ //error has occured for arrow cluster
error_count_arrow++;
if (error_count_arrow > ERROR_DISCONNECT_COUNT){ //disconnect arrow cluster
@ -258,7 +258,7 @@ bool matrix_is_modified(void)
inline
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


+ 1
- 1
keyboards/dc01/numpad/matrix.c View File

@ -218,7 +218,7 @@ bool matrix_is_modified(void)
inline
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


+ 1
- 1
keyboards/dc01/right/matrix.c View File

@ -218,7 +218,7 @@ bool matrix_is_modified(void)
inline
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


+ 1
- 1
keyboards/dichotomy/matrix.c View File

@ -198,7 +198,7 @@ uint8_t matrix_scan(void)
inline
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


+ 1
- 1
keyboards/handwired/promethium/matrix.c View File

@ -167,7 +167,7 @@ inline
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


+ 1
- 1
keyboards/kmac/matrix.c View File

@ -97,7 +97,7 @@ uint8_t matrix_scan(void)
inline
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


+ 1
- 1
keyboards/kmini/matrix.c View File

@ -112,7 +112,7 @@ uint8_t matrix_scan(void)
inline
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


+ 2
- 2
keyboards/mitosis/matrix.c View File

@ -103,7 +103,7 @@ uint8_t matrix_scan(void)
if (timeout > 10000){
break;
}
}
}
uart_data[i] = SERIAL_UART_DATA;
}
@ -125,7 +125,7 @@ uint8_t matrix_scan(void)
inline
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


+ 4
- 4
keyboards/redox_w/matrix.c View File

@ -1,15 +1,15 @@
/* Copyright 2017 Mattia Dal Ben
*
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
@ -132,7 +132,7 @@ uint8_t matrix_scan(void)
inline
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


+ 4
- 4
keyboards/sx60/matrix.c View File

@ -137,7 +137,7 @@ void matrix_init(void) {
uint8_t matrix_scan(void)
{
if (mcp23018_status) {
if (mcp23018_status) {
/* if there was an error */
if (++mcp23018_reset_loop == 0) {
/* since mcp23018_reset_loop is 8 bit - we'll try to reset once in 255 matrix scans
@ -190,7 +190,7 @@ bool matrix_is_modified(void)
inline
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
@ -246,7 +246,7 @@ static bool read_cols_on_row(matrix_row_t current_matrix[], uint8_t current_row)
select_row(current_row);
wait_us(30);
if (mcp23018_status) {
if (mcp23018_status) {
/* if there was an error */
return 0;
} else {
@ -279,7 +279,7 @@ static bool read_cols_on_row(matrix_row_t current_matrix[], uint8_t current_row)
static void select_row(uint8_t row)
{
if (mcp23018_status) {
if (mcp23018_status) {
/* if there was an error do nothing */
} else {
/* set active row low : 0


+ 2
- 2
keyboards/telophase/matrix.c View File

@ -112,7 +112,7 @@ uint8_t matrix_scan(void)
if (timeout > 10000){
break;
}
}
}
uart_data[i] = SERIAL_UART_DATA;
}
@ -134,7 +134,7 @@ uint8_t matrix_scan(void)
inline
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


+ 1
- 1
quantum/matrix.c View File

@ -184,7 +184,7 @@ bool matrix_is_modified(void)
inline
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


Loading…
Cancel
Save