diff options
| author | Purdea Andrei <andrei@purdea.ro> | 2021-05-09 06:45:41 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-08 20:45:41 -0700 |
| commit | 60a39f4f5d192625ea03daf8cd26bc89aa1a91c2 (patch) | |
| tree | 4bf5b88b926fdb31af4b9f78bd23f6d6024455b7 /drivers | |
| parent | df57590ec64f1fc6d3c4163ba60be96305339113 (diff) | |
| download | qmk_firmware-60a39f4f5d192625ea03daf8cd26bc89aa1a91c2.tar.gz qmk_firmware-60a39f4f5d192625ea03daf8cd26bc89aa1a91c2.zip | |
haptic: correct size of reserved field in the haptic structure. This saves 1 byte of wasted SRAM. (#12483)
Co-authored-by: Drashna Jaelre <drashna@live.com>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/haptic/haptic.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/haptic/haptic.h b/drivers/haptic/haptic.h index 5d3bd1c31..9223ad1c8 100644 --- a/drivers/haptic/haptic.h +++ b/drivers/haptic/haptic.h | |||
| @@ -41,7 +41,7 @@ typedef union { | |||
| 41 | uint8_t dwell : 7; | 41 | uint8_t dwell : 7; |
| 42 | bool cont : 1; | 42 | bool cont : 1; |
| 43 | uint8_t amplitude : 8; | 43 | uint8_t amplitude : 8; |
| 44 | uint16_t reserved : 7; | 44 | uint8_t reserved : 5; |
| 45 | }; | 45 | }; |
| 46 | } haptic_config_t; | 46 | } haptic_config_t; |
| 47 | 47 | ||
