瀏覽代碼

Use serial macro in sd_mmc_spi_mem.cpp for Due

Scott Lahteine 6 年之前
父節點
當前提交
1bf2b1e475
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      Marlin/src/HAL/HAL_DUE/usb/sd_mmc_spi_mem.cpp

+ 2
- 2
Marlin/src/HAL/HAL_DUE/usb/sd_mmc_spi_mem.cpp 查看文件

@@ -65,7 +65,7 @@ Ctrl_status sd_mmc_spi_usb_read_10(uint32_t addr, uint16_t nb_sector) {
65 65
   #ifdef DEBUG_MMC
66 66
     char buffer[80];
67 67
     sprintf(buffer, "SDRD: %d @ 0x%08x\n", nb_sector, addr);
68
-    MYSERIAL0.print(buffer);
68
+    SERIAL_PROTOCOL_P(0, buffer);
69 69
   #endif
70 70
 
71 71
   // Start reading
@@ -99,7 +99,7 @@ Ctrl_status sd_mmc_spi_usb_write_10(uint32_t addr, uint16_t nb_sector) {
99 99
   #ifdef DEBUG_MMC
100 100
     char buffer[80];
101 101
     sprintf(buffer, "SDWR: %d @ 0x%08x\n", nb_sector, addr);
102
-    MYSERIAL0.print(buffer);
102
+    SERIAL_PROTOCOL_P(0, buffer);
103 103
   #endif
104 104
 
105 105
   if (!card.getSd2Card().writeStart(addr, nb_sector))

Loading…
取消
儲存