diff options
author | Zach White <skullydazed@gmail.com> | 2021-07-23 08:06:12 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-23 08:06:12 -0700 |
commit | fa32c66e9d6075252c9a8278305677c440b1c499 (patch) | |
tree | fc95f4f56937922f51bf8b8701be570cec7b4cc9 | |
parent | 4ff4c05719dcf22983cac89d6f046b6ab3574e62 (diff) | |
download | qmk_firmware-fa32c66e9d6075252c9a8278305677c440b1c499.tar.gz qmk_firmware-fa32c66e9d6075252c9a8278305677c440b1c499.zip |
[Keyboard] Fix dc01/left so that it doesn't throw a warning (#13653)
-rw-r--r-- | keyboards/dc01/left/config.h | 2 | ||||
-rw-r--r-- | keyboards/dc01/left/matrix.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/keyboards/dc01/left/config.h b/keyboards/dc01/left/config.h index 57614e84a..8a166a265 100644 --- a/keyboards/dc01/left/config.h +++ b/keyboards/dc01/left/config.h | |||
@@ -42,7 +42,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
42 | * | 42 | * |
43 | */ | 43 | */ |
44 | #define MATRIX_ROW_PINS { B6, B5, B4, D7, D6 } | 44 | #define MATRIX_ROW_PINS { B6, B5, B4, D7, D6 } |
45 | #define MATRIX_COL_PINS { F4, F1, F0, F7, F6, F5 } | 45 | #define MATRIX_COL_PINS { F4, F1, F0, F7, F6, F5, NO_PIN, NO_PIN, NO_PIN, NO_PIN, NO_PIN, NO_PIN, NO_PIN, NO_PIN, NO_PIN, NO_PIN, NO_PIN, NO_PIN, NO_PIN, NO_PIN, NO_PIN } |
46 | #define UNUSED_PINS | 46 | #define UNUSED_PINS |
47 | 47 | ||
48 | #define F_SCL 350000UL | 48 | #define F_SCL 350000UL |
diff --git a/keyboards/dc01/left/matrix.c b/keyboards/dc01/left/matrix.c index 0833afc11..bf5aba849 100644 --- a/keyboards/dc01/left/matrix.c +++ b/keyboards/dc01/left/matrix.c | |||
@@ -26,6 +26,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
26 | #include "wait.h" | 26 | #include "wait.h" |
27 | #include "print.h" | 27 | #include "print.h" |
28 | #include "debug.h" | 28 | #include "debug.h" |
29 | #include "gpio.h" | ||
29 | #include "util.h" | 30 | #include "util.h" |
30 | #include "matrix.h" | 31 | #include "matrix.h" |
31 | #include "timer.h" | 32 | #include "timer.h" |
@@ -71,7 +72,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
71 | 72 | ||
72 | #if (DIODE_DIRECTION == ROW2COL) || (DIODE_DIRECTION == COL2ROW) | 73 | #if (DIODE_DIRECTION == ROW2COL) || (DIODE_DIRECTION == COL2ROW) |
73 | static const uint8_t row_pins[MATRIX_ROWS] = MATRIX_ROW_PINS; | 74 | static const uint8_t row_pins[MATRIX_ROWS] = MATRIX_ROW_PINS; |
74 | static const uint8_t col_pins[MATRIX_COLS_SCANNED] = MATRIX_COL_PINS; | 75 | static const uint8_t col_pins[MATRIX_COLS] = MATRIX_COL_PINS; |
75 | #endif | 76 | #endif |
76 | 77 | ||
77 | /* matrix state(1:on, 0:off) */ | 78 | /* matrix state(1:on, 0:off) */ |