Просмотр исходного кода

【修复】:uart 类符号找不到的问题

SummerGift 7 лет назад
Родитель
Сommit
7567e37a40
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      port/machine_uart.c

+ 1 - 2
port/machine_uart.c

@@ -23,7 +23,6 @@
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * THE SOFTWARE.
  */
-#ifdef MICROPYTHON_USING_MACHINE_UART
 
 #include <stdio.h>
 #include <string.h>
@@ -36,7 +35,7 @@
 #include <stdarg.h>
 #include "machine_uart.h"
 
-STATIC const mp_obj_type_t machine_uart_type;
+#ifdef MICROPYTHON_USING_MACHINE_UART
 
 typedef struct _machine_uart_obj_t {
     mp_obj_base_t base;