diff options
author | zvecr <[email protected]> | 2019-11-17 14:02:26 +0000 |
---|---|---|
committer | Drashna Jaelre <[email protected]> | 2019-11-17 08:25:58 -0800 |
commit | a91c0c476507cb8c12840abb59bff34ab0de3c03 (patch) | |
tree | 313d9a0ec2f17c47f33305b350eef8768b5efa1c /drivers/haptic/DRV2605L.c | |
parent | 6b18ca2875ceb38011f32f2d17238ba55ce7ad67 (diff) | |
download | qmk_firmware-a91c0c476507cb8c12840abb59bff34ab0de3c03.tar.gz qmk_firmware-a91c0c476507cb8c12840abb59bff34ab0de3c03.zip |
Run clang-format manually to fix recently changed files
Diffstat (limited to 'drivers/haptic/DRV2605L.c')
-rw-r--r-- | drivers/haptic/DRV2605L.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/haptic/DRV2605L.c b/drivers/haptic/DRV2605L.c index 728554b01e..c40731913b 100644 --- a/drivers/haptic/DRV2605L.c +++ b/drivers/haptic/DRV2605L.c @@ -115,15 +115,13 @@ void DRV_init(void) { } void DRV_rtp_init(void) { - DRV_write(DRV_GO, 0x00); - DRV_write(DRV_RTP_INPUT, 20); //20 is the lowest value I've found where haptics can still be felt. - DRV_write(DRV_MODE, 0x05); - DRV_write(DRV_GO, 0x01); + DRV_write(DRV_GO, 0x00); + DRV_write(DRV_RTP_INPUT, 20); // 20 is the lowest value I've found where haptics can still be felt. + DRV_write(DRV_MODE, 0x05); + DRV_write(DRV_GO, 0x01); } -void DRV_amplitude(uint8_t amplitude) { - DRV_write(DRV_RTP_INPUT, amplitude); -} +void DRV_amplitude(uint8_t amplitude) { DRV_write(DRV_RTP_INPUT, amplitude); } void DRV_pulse(uint8_t sequence) { DRV_write(DRV_GO, 0x00); |