Browse Source

Use serial macro in sd_mmc_spi_mem.cpp for Due

Scott Lahteine 6 years ago
parent
commit
1bf2b1e475
1 changed files with 2 additions and 2 deletions
  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 View File

@@ -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…
Cancel
Save