]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Fix `1<col` instead of `1<<col` typo in matrix_is_on()
authorJames Churchill <pelrun@gmail.com>
Sun, 27 Jan 2019 06:30:25 +0000 (16:30 +1000)
committerDrashna Jaelre <drashna@live.com>
Sun, 27 Jan 2019 16:37:26 +0000 (08:37 -0800)
17 files changed:
keyboards/chimera_ergo/matrix.c
keyboards/chimera_ls/matrix.c
keyboards/chimera_ortho/matrix.c
keyboards/comet46/matrix.c
keyboards/dc01/arrow/matrix.c
keyboards/dc01/left/matrix.c
keyboards/dc01/numpad/matrix.c
keyboards/dc01/right/matrix.c
keyboards/dichotomy/matrix.c
keyboards/handwired/promethium/matrix.c
keyboards/kmac/matrix.c
keyboards/kmini/matrix.c
keyboards/mitosis/matrix.c
keyboards/redox_w/matrix.c
keyboards/sx60/matrix.c
keyboards/telophase/matrix.c
quantum/matrix.c

index 21d46ef9b4789c3d318d367213fb84fdcb5bef5c..d512a51d9735619545306e807c7bbaa5e4e3f22d 100644 (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
index 665d0d357330d0df4b2bc991c1fa84def250cebf..72fe4413704a497ac606bec9f69d2cab8d7223ce 100644 (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
index 66d29f8b38f0bc9a9f45528c33a0576775ecaf52..dc38ba74f865ea8f22ba6b320ffebfcd4cf56e15 100644 (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
index 66d29f8b38f0bc9a9f45528c33a0576775ecaf52..dc38ba74f865ea8f22ba6b320ffebfcd4cf56e15 100644 (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
index 85591f6026ab43a1c9029d8de0a296a1688e1bc3..dd5e2ee9c9e19063f3dc0fbddb4caf7263e1b2fd 100644 (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
index 806583580d7f1f8d3832c5ff22f37f4b948f6efd..cbe3b3f3d8faa5ac3d88ddb2dfa83da9342b486c 100644 (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
index 39637241d7e358b20defaaca9d196bfbb3299c80..5a13f3ff245f86bfeed443129ea3617d17d99d23 100644 (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
index 50fe19b8d1a6f9a137a0a1588efb48932ab4b872..6d981797c3abaa9dff9a87f5127ce2b0d2858d25 100644 (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
index 14c3f0d8e3c5625cff66baaf21ed72f5e85a1bcf..f14c901288250c67e953724a2f87992d4512d369 100755 (executable)
@@ -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
index 00f2b8e9dca962a2e1ac90c9c29c75ba60ff3162..0b4456e2899df2df42ad9d23f90e6c5c97d139cb 100644 (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
index cfafa90e661fb61d0b2140ec5f24d29128b4f4f5..82f0621f2b98d2619c6f5573ede60bcc95b054e6 100644 (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
index 5f9bfe3d7fa1d557acbc6485d18199b37b24b7d1..69135909a5950814f77307d14ef49456852324ef 100755 (executable)
@@ -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
index 4b87242b916dac1e4090bd16da69eb2c33cf4790..e149b68bd7d20dc4760d0ae646db25ed41e72fcf 100644 (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
index 5e61103f201c366838406995726fa41aa6347e7d..31233af1018e02984ede22c7ec9ed30c840b8324 100644 (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
index e91b4f441884a61d5d632a81f32117bb86de0338..634a98a12c04f65eda087b65ed34dbe19740436c 100644 (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
index b3544453e72e5f0640c1650d2f4e3d6dea6b9212..c332eba556c52eb0552d7b33a158dcad8a60ac8f 100644 (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
index 49a184569612af343def48dd39c2362342c14995..d2b805d7f1fa621b8706d3e3bbd0288d387210eb 100644 (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