Add the name of the file being printed...
authordamfle <contact@damfle.com>
Mon, 20 Apr 2015 17:01:31 +0000 (19:01 +0200)
committerdamfle <contact@damfle.com>
Mon, 20 Apr 2015 17:01:31 +0000 (19:01 +0200)
...when using the command "progress"  or M27.

src/modules/utils/player/Player.cpp

index 01acc6f..0d50a40 100644 (file)
@@ -335,7 +335,7 @@ void Player::progress_command( string parameters, StreamOutput *stream )
         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);
             }