Prevent wdt reset during file listing

This commit is contained in:
Voinea Dragos 2021-01-25 11:46:51 +02:00
parent e8e4aabfdb
commit 2b3729125d
2 changed files with 2 additions and 0 deletions

View File

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

View File

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