diff options
| author | Joel Challis <git@zvecr.com> | 2020-12-18 17:28:29 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-18 17:28:29 +0000 |
| commit | a9f7d4dccc9cd0351658e64d5fbc809c93ac9b46 (patch) | |
| tree | bfaaaf23c39f4ab72541309592e6f162b9ba4d06 /drivers/haptic | |
| parent | 6ea4b06f9fc19825605477cdc27f5bec0f3dc0a9 (diff) | |
| download | qmk_firmware-a9f7d4dccc9cd0351658e64d5fbc809c93ac9b46.tar.gz qmk_firmware-a9f7d4dccc9cd0351658e64d5fbc809c93ac9b46.zip | |
Various compilation fixes for avr-gcc 10 (#9269)
Diffstat (limited to 'drivers/haptic')
| -rw-r--r-- | drivers/haptic/DRV2605L.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/haptic/DRV2605L.c b/drivers/haptic/DRV2605L.c index 830d629da..5de2b354c 100644 --- a/drivers/haptic/DRV2605L.c +++ b/drivers/haptic/DRV2605L.c | |||
| @@ -21,8 +21,6 @@ | |||
| 21 | #include <math.h> | 21 | #include <math.h> |
| 22 | 22 | ||
| 23 | uint8_t DRV2605L_transfer_buffer[2]; | 23 | uint8_t DRV2605L_transfer_buffer[2]; |
| 24 | uint8_t DRV2605L_tx_register[0]; | ||
| 25 | uint8_t DRV2605L_read_buffer[0]; | ||
| 26 | uint8_t DRV2605L_read_register; | 24 | uint8_t DRV2605L_read_register; |
| 27 | 25 | ||
| 28 | void DRV_write(uint8_t drv_register, uint8_t settings) { | 26 | void DRV_write(uint8_t drv_register, uint8_t settings) { |
| @@ -32,8 +30,7 @@ void DRV_write(uint8_t drv_register, uint8_t settings) { | |||
| 32 | } | 30 | } |
| 33 | 31 | ||
| 34 | uint8_t DRV_read(uint8_t regaddress) { | 32 | uint8_t DRV_read(uint8_t regaddress) { |
| 35 | i2c_readReg(DRV2605L_BASE_ADDRESS << 1, regaddress, DRV2605L_read_buffer, 1, 100); | 33 | i2c_readReg(DRV2605L_BASE_ADDRESS << 1, regaddress, &DRV2605L_read_register, 1, 100); |
| 36 | DRV2605L_read_register = (uint8_t)DRV2605L_read_buffer[0]; | ||
| 37 | 34 | ||
| 38 | return DRV2605L_read_register; | 35 | return DRV2605L_read_register; |
| 39 | } | 36 | } |
