...when using the command "progress" or M27.
unsigned int pcnt = (file_size - (file_size - played_cnt)) * 100 / file_size;
// If -b or -B is passed, report in the format used by Marlin and the others.
if (!sdprinting) {
- stream->printf("%u %% complete, elapsed time: %lu s", pcnt, this->elapsed_secs);
+ stream->printf("filename %s, %u %% complete, elapsed time: %lu s", this->filename.c_str(), pcnt, this->elapsed_secs);
if(est > 0) {
stream->printf(", est time: %lu s", est);
}