Skip to content

Commit 9f7167f

Browse files
committed
moves lock field to the proper structure.
1 parent 4fb4df2 commit 9f7167f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

micropy_updates/common/mp_i2c_common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@
3333
uint32_t timeout_us;
3434
uint8_t use_locks : 1;
3535
uint8_t pullup : 1;
36+
i2c_bus_lock_t lock;
3637
};
3738

3839
struct _mp_machine_hw_i2c_device_obj_t {
3940
mp_obj_base_t base;
4041
uint16_t device_id;
4142
uint8_t reg_bits;
42-
i2c_bus_lock_t lock;
4343
mp_machine_hw_i2c_bus_obj_t *bus;
4444
};
4545

0 commit comments

Comments
 (0)