Skip to content

Commit e358d9d

Browse files
committed
components/M5Unified: Fixed GLASS Unit initialization exception.
Signed-off-by: lbuque <[email protected]>
1 parent 3cd797e commit e358d9d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

m5stack/components/M5Unified/mpy_m5unified.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,13 @@ extern "C"
4040

4141
typedef struct _machine_hw_i2c_obj_t {
4242
mp_obj_base_t base;
43+
i2c_port_t port : 8;
44+
gpio_num_t scl : 8;
45+
gpio_num_t sda : 8;
46+
// Start of modification section, by M5Stack
4347
uint8_t pos;
44-
i2c_port_t port;
45-
int8_t scl;
46-
int8_t sda;
4748
uint32_t freq;
49+
// End of modification section, by M5Stack
4850
} machine_hw_i2c_obj_t;
4951

5052
static void m5_btns_callbacks_check(void);

0 commit comments

Comments
 (0)