Revert "Remove offset checks for reserved fields in sensor_t and sensors_event_t."
This reverts commit 4db220ec85.
Change-Id: I61feb99c2024889e29e2b300ad4a4f5af1fdc282
This commit is contained in:
@@ -88,6 +88,7 @@ void CheckOffsets(void) {
|
||||
CHECK_MEMBER_AT(sensors_event_t, u64, 24, 24);
|
||||
CHECK_MEMBER_AT(sensors_event_t, u64.data, 24, 24);
|
||||
CHECK_MEMBER_AT(sensors_event_t, u64.step_counter, 24, 24);
|
||||
CHECK_MEMBER_AT(sensors_event_t, reserved1, 88, 88);
|
||||
|
||||
CHECK_MEMBER_AT(struct sensor_t, name, 0, 0);
|
||||
CHECK_MEMBER_AT(struct sensor_t, vendor, 4, 8);
|
||||
@@ -100,6 +101,7 @@ void CheckOffsets(void) {
|
||||
CHECK_MEMBER_AT(struct sensor_t, minDelay, 32, 40);
|
||||
CHECK_MEMBER_AT(struct sensor_t, fifoReservedEventCount, 36, 44);
|
||||
CHECK_MEMBER_AT(struct sensor_t, fifoMaxEventCount, 40, 48);
|
||||
CHECK_MEMBER_AT(struct sensor_t, reserved, 44, 56);
|
||||
|
||||
CHECK_MEMBER_AT(sensors_poll_device_1_t, v0, 0, 0);
|
||||
CHECK_MEMBER_AT(sensors_poll_device_1_t, common, 0, 0);
|
||||
|
||||
Reference in New Issue
Block a user