haptic: naming cleanups (#21551)

This commit is contained in:
Ryan
2023-07-21 09:17:39 +10:00
committed by GitHub
parent b20b360404
commit b090354143
53 changed files with 667 additions and 660 deletions
+6 -6
View File
@@ -3,7 +3,7 @@
#include "quantum.h"
#ifdef HAPTIC_ENABLE
#include "drivers/haptic/DRV2605L.h"
#include "drivers/haptic/drv2605l.h"
#endif
#ifdef SWAP_HANDS_ENABLE
@@ -100,27 +100,27 @@ __attribute__((weak)) layer_state_t layer_state_set_user(layer_state_t state) {
switch (get_highest_layer(state)) {
case 1:
#ifdef HAPTIC_ENABLE
DRV_pulse(soft_bump);
drv2605l_pulse(soft_bump);
#endif
break;
case 2:
#ifdef HAPTIC_ENABLE
DRV_pulse(sh_dblsharp_tick);
drv2605l_pulse(sh_dblsharp_tick);
#endif
break;
case 3:
#ifdef HAPTIC_ENABLE
DRV_pulse(lg_dblclick_str);
drv2605l_pulse(lg_dblclick_str);
#endif
break;
case 4:
#ifdef HAPTIC_ENABLE
DRV_pulse(soft_bump);
drv2605l_pulse(soft_bump);
#endif
break;
case 5:
#ifdef HAPTIC_ENABLE
DRV_pulse(pulsing_sharp);
drv2605l_pulse(pulsing_sharp);
#endif
break;
}