File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -446,7 +446,7 @@ class MCP3x6x {
446
446
*/
447
447
union Scan {
448
448
Scan (const uint8_t data[3 ] = MCP3x6x_CFG_SCAN) : raw{data[0 ], data[1 ], data[2 ]} {}
449
- struct {
449
+ struct __attribute__ ((packed)) {
450
450
union {
451
451
struct {
452
452
uint8_t single_ended : 8 ; // !< Single-Ended Channel CH0-CH7
@@ -458,9 +458,9 @@ class MCP3x6x {
458
458
};
459
459
uint16_t raw; // !< raw access to register
460
460
} channel;
461
- uint8_t : 4 ; // !< unimplemented: read as ‘0’
462
- bool : 1 ; // !< reserved: should be set to ‘0‘
463
- enum delay dly : 3 ; // !< delay time between each conversion during a scan cycle
461
+ uint8_t unimplemented : 4 ; // !< unimplemented: read as ‘0’
462
+ bool reserved : 1 ; // !< reserved: should be set to ‘0‘
463
+ enum delay dly : 3 ; // !< delay time between each conversion during a scan cycle
464
464
};
465
465
uint8_t raw[3 ]; // !< raw access to register
466
466
} _scan;
You can’t perform that action at this time.
0 commit comments