فهرست منبع

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.
Alfredo 8 سال پیش
والد
کامیت
7b86fa6016
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      Firmware/cardreader.cpp

+ 1 - 1
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);
         }
       }