From 7b86fa60163a9ed3a3e00390a4e186b95e635702 Mon Sep 17 00:00:00 2001 From: Alfredo Date: Tue, 7 Mar 2017 09:37:15 -0500 Subject: [PATCH] Bug: M20 - List SD card When the SD card is inserted in a Mac computer some special directory are written. The purse firmware is unable to navigate those directory and generates an error sent showed on the serial line. the BUG is the instruction SERIAL_ECHOLN does not work with string pointers and there fore garbage is sent on the serial line. The proposed correction is to use the right instruction: SERIAL_ECHORPGM that works with string pointers. Therefore the correct message is MSG_SD_CANT_ENTER_SUBDIR and not the original listed. --- Firmware/cardreader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Firmware/cardreader.cpp b/Firmware/cardreader.cpp index a9ee7e57..f41f20ac 100644 --- a/Firmware/cardreader.cpp +++ b/Firmware/cardreader.cpp @@ -81,7 +81,7 @@ void CardReader::lsDive(const char *prepend, SdFile parent, const char * const m if(lsAction==LS_SerialPrint) { SERIAL_ECHO_START; - SERIAL_ECHOLN(MSG_SD_CANT_OPEN_SUBDIR); + SERIAL_ECHORPGM(MSG_SD_CANT_ENTER_SUBDIR); SERIAL_ECHOLN(lfilename); } }