Prevent wdt reset during file listing
This commit is contained in:
parent
e8e4aabfdb
commit
2b3729125d
|
|
@ -5681,6 +5681,7 @@ if(eSoundMode!=e_SOUND_MODE_SILENT)
|
|||
- `L` - Reports ling filenames instead of just short filenames. Requires host software parsing.
|
||||
*/
|
||||
case 20:
|
||||
KEEPALIVE_STATE(NOT_BUSY); // do not send busy messages during listing. Inhibits the output of manage_heater()
|
||||
SERIAL_PROTOCOLLNRPGM(_N("Begin file list"));////MSG_BEGIN_FILE_LIST
|
||||
card.ls(code_seen('L'));
|
||||
SERIAL_PROTOCOLLNRPGM(_N("End file list"));////MSG_END_FILE_LIST
|
||||
|
|
|
|||
|
|
@ -133,6 +133,7 @@ void CardReader::lsDive(const char *prepend, SdFile parent, const char * const m
|
|||
printf_P(PSTR("\"%s\" "), LONGEST_FILENAME);
|
||||
|
||||
SERIAL_PROTOCOLLN(p.fileSize);
|
||||
manage_heater();
|
||||
break;
|
||||
|
||||
case LS_GetFilename:
|
||||
|
|
|
|||
Loading…
Reference in New Issue