Skip to content

Commit b7c4b09

Browse files
committed
another try at fixing the esp32 port
1 parent 19f908d commit b7c4b09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

micropy_updates/esp32/machine_i2c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ static const void *_get_func(size_t index)
5555
{
5656
mp_map_elem_t * table = mp_machine_i2c_locals_dict.map.table;
5757
mp_rom_map_elem_t *rom_table = (mp_rom_map_elem_t *)table;
58-
mp_rom_obj_t value = rom_table[index].value;
58+
mp_rom_obj_t value = (mp_rom_obj_t)((mp_rom_map_elem_t)rom_table[index]).value;
5959

6060
if (value.u32.lo == NULL) return value.u32.hi;
6161
else return value.u32.lo;

0 commit comments

Comments
 (0)