mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-27 13:56:24 +00:00
Use serial macro in sd_mmc_spi_mem.cpp for Due
This commit is contained in:
parent
241e55ef3b
commit
1bf2b1e475
@ -65,7 +65,7 @@ Ctrl_status sd_mmc_spi_usb_read_10(uint32_t addr, uint16_t nb_sector) {
|
|||||||
#ifdef DEBUG_MMC
|
#ifdef DEBUG_MMC
|
||||||
char buffer[80];
|
char buffer[80];
|
||||||
sprintf(buffer, "SDRD: %d @ 0x%08x\n", nb_sector, addr);
|
sprintf(buffer, "SDRD: %d @ 0x%08x\n", nb_sector, addr);
|
||||||
MYSERIAL0.print(buffer);
|
SERIAL_PROTOCOL_P(0, buffer);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Start reading
|
// Start reading
|
||||||
@ -99,7 +99,7 @@ Ctrl_status sd_mmc_spi_usb_write_10(uint32_t addr, uint16_t nb_sector) {
|
|||||||
#ifdef DEBUG_MMC
|
#ifdef DEBUG_MMC
|
||||||
char buffer[80];
|
char buffer[80];
|
||||||
sprintf(buffer, "SDWR: %d @ 0x%08x\n", nb_sector, addr);
|
sprintf(buffer, "SDWR: %d @ 0x%08x\n", nb_sector, addr);
|
||||||
MYSERIAL0.print(buffer);
|
SERIAL_PROTOCOL_P(0, buffer);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!card.getSd2Card().writeStart(addr, nb_sector))
|
if (!card.getSd2Card().writeStart(addr, nb_sector))
|
||||||
|
Loading…
Reference in New Issue
Block a user