|
@@ -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))
|