diff options
author | Drashna Jaelre <drashna@live.com> | 2019-06-06 12:09:56 -0700 |
---|---|---|
committer | MechMerlin <30334081+mechmerlin@users.noreply.github.com> | 2019-06-06 12:09:56 -0700 |
commit | faaaa134fd436be400aa2c7841b38907899d49a6 (patch) | |
tree | 9deaea82d250f349b314ec89d369f068ddd75489 /keyboards/bpiphany/pegasushoof | |
parent | fe6b8edd581c334a92a97c15faced95a12d5e882 (diff) |
Replace DEBOUNCING_DELAY (deprecated) with DEBOUNCE (#5997)
Diffstat (limited to 'keyboards/bpiphany/pegasushoof')
-rw-r--r-- | keyboards/bpiphany/pegasushoof/config.h | 2 | ||||
-rw-r--r-- | keyboards/bpiphany/pegasushoof/matrix.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/keyboards/bpiphany/pegasushoof/config.h b/keyboards/bpiphany/pegasushoof/config.h index 885afaa900..cd89b7582a 100644 --- a/keyboards/bpiphany/pegasushoof/config.h +++ b/keyboards/bpiphany/pegasushoof/config.h @@ -36,6 +36,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #define DIODE_DIRECTION COL2ROW /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ -#define DEBOUNCING_DELAY 5 +#define DEBOUNCE 5 #endif diff --git a/keyboards/bpiphany/pegasushoof/matrix.c b/keyboards/bpiphany/pegasushoof/matrix.c index 127433875d..a670d53823 100644 --- a/keyboards/bpiphany/pegasushoof/matrix.c +++ b/keyboards/bpiphany/pegasushoof/matrix.c @@ -26,7 +26,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #include "util.h" #include "matrix.h" -static uint8_t debouncing = DEBOUNCING_DELAY; +static uint8_t debouncing = DEBOUNCE; static matrix_row_t matrix[MATRIX_ROWS]; static matrix_row_t matrix_debouncing[MATRIX_ROWS]; @@ -90,7 +90,7 @@ uint8_t matrix_scan(void) bool curr_bit = rows & (1<<row); if (prev_bit != curr_bit) { matrix_debouncing[row] ^= (matrix_row_t) 1 << col; - debouncing = DEBOUNCING_DELAY; + debouncing = DEBOUNCE; } } } |