summaryrefslogtreecommitdiff
path: root/keyboards/kmac
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/kmac')
-rw-r--r--keyboards/kmac/config.h2
-rw-r--r--keyboards/kmac/matrix.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/keyboards/kmac/config.h b/keyboards/kmac/config.h
index bea6821731..110a7ac0f9 100644
--- a/keyboards/kmac/config.h
+++ b/keyboards/kmac/config.h
@@ -50,7 +50,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// #define BACKLIGHT_BREATHING
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
-#define DEBOUNCING_DELAY 5
+#define DEBOUNCE 5
/* define if matrix has ghost (lacks anti-ghosting diodes) */
//#define MATRIX_HAS_GHOST
diff --git a/keyboards/kmac/matrix.c b/keyboards/kmac/matrix.c
index 82f0621f2b..00da96604d 100644
--- a/keyboards/kmac/matrix.c
+++ b/keyboards/kmac/matrix.c
@@ -28,8 +28,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* Set 0 if debouncing isn't needed */
-#ifndef DEBOUNCING_DELAY
-# define DEBOUNCING_DELAY 5
+#ifndef DEBOUNCE
+# define DEBOUNCE 5
#endif
#define COL_SHIFTER ((uint32_t)1)
@@ -83,7 +83,7 @@ uint8_t matrix_scan(void)
}
}
- if (debouncing && (timer_elapsed(debouncing_time) > DEBOUNCING_DELAY)) {
+ if (debouncing && (timer_elapsed(debouncing_time) > DEBOUNCE)) {
for (uint8_t i = 0; i < MATRIX_ROWS; i++) {
matrix[i] = matrix_debouncing[i];
}