diff options
author | Ryan <[email protected]> | 2023-08-04 10:16:16 +1000 |
---|---|---|
committer | GitHub <[email protected]> | 2023-08-04 01:16:16 +0100 |
commit | 0b802defd4ad81f38bdd3ae0192e2a834f7d99be (patch) | |
tree | f1577113e925225a25a89e2b02fbea74c65a0322 /quantum/haptic.c | |
parent | c9fa2006d95a68cf8da85e374b205c670260d78b (diff) | |
download | qmk_firmware-0b802defd4ad81f38bdd3ae0192e2a834f7d99be.tar.gz qmk_firmware-0b802defd4ad81f38bdd3ae0192e2a834f7d99be.zip |
haptic: further naming cleanups (#21682)
Diffstat (limited to 'quantum/haptic.c')
-rw-r--r-- | quantum/haptic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/quantum/haptic.c b/quantum/haptic.c index 13b2258eb8..5a700dca38 100644 --- a/quantum/haptic.c +++ b/quantum/haptic.c @@ -146,7 +146,7 @@ void haptic_buzz_toggle(void) { void haptic_mode_increase(void) { uint8_t mode = haptic_config.mode + 1; #ifdef HAPTIC_DRV2605L - if (haptic_config.mode >= drv_effect_max) { + if (haptic_config.mode >= DRV2605L_EFFECT_COUNT) { mode = 1; } #endif @@ -157,7 +157,7 @@ void haptic_mode_decrease(void) { uint8_t mode = haptic_config.mode - 1; #ifdef HAPTIC_DRV2605L if (haptic_config.mode < 1) { - mode = (drv_effect_max - 1); + mode = (DRV2605L_EFFECT_COUNT - 1); } #endif haptic_set_mode(mode); |