Explorar el Código

Merge pull request #12 from SummerGGift/update_macro

 【修改】:修改错误 SPI 宏判断语句
朱天龙 (Armink) hace 8 años
padre
commit
df19033fba
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      port/mpconfigport.h

+ 1 - 1
port/mpconfigport.h

@@ -211,7 +211,7 @@
 #define MICROPY_PY_MACHINE_I2C_MAKE_NEW machine_hard_i2c_make_new
 #define MICROPY_PY_MACHINE_I2C_MAKE_NEW machine_hard_i2c_make_new
 #endif
 #endif
 
 
-#if MICROPYTHON_USING_MACHINE_SPI
+#ifdef MICROPYTHON_USING_MACHINE_SPI
 #define MICROPY_PY_MACHINE_SPI      (1)
 #define MICROPY_PY_MACHINE_SPI      (1)
 #endif
 #endif