Explorar o código

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>
Purdea Andrei %!s(int64=4) %!d(string=hai) anos
pai
achega
60a39f4f5d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      drivers/haptic/haptic.h

+ 1 - 1
drivers/haptic/haptic.h

@@ -41,7 +41,7 @@ typedef union {
         uint8_t  dwell : 7;
         bool     cont : 1;
         uint8_t  amplitude : 8;
-        uint16_t reserved : 7;
+        uint8_t reserved : 5;
     };
 } haptic_config_t;