heyuanjie87 5 лет назад
Родитель
Сommit
806b4822f4
2 измененных файлов с 3 добавлено и 2 удалено
  1. 1 0
      port/genhdr/qstrdefs.generated.h
  2. 2 2
      port/modules/machine/machine_hw_i2c.c

+ 1 - 0
port/genhdr/qstrdefs.generated.h

@@ -774,3 +774,4 @@ QDEF(MP_QSTR_uarray, (const byte*)"\x89\x06" "uarray")
 QDEF(MP_QSTR_mpy, (const byte*)"\xc1\x03" "mpy")
 QDEF(MP_QSTR___matmul__, (const byte*)"\x49\x0a" "__matmul__")
 QDEF(MP_QSTR___bases__, (const byte*)"\x03\x09" "__bases__")
+QDEF(MP_QSTR_writevto, (const byte*)"\x75\x08" "writevto")

+ 2 - 2
port/modules/machine/machine_hw_i2c.c

@@ -99,8 +99,8 @@ STATIC const mp_machine_i2c_p_t machine_hard_i2c_p = {
     .stop = NULL,
     .read = NULL,
     .write = NULL,
-    .readfrom = machine_hard_i2c_readfrom,
-    .writeto = machine_hard_i2c_writeto,
+    .transfer = NULL,
+    .transfer_single = NULL,
 };
 
 STATIC const mp_obj_type_t machine_hard_i2c_type = {