gcode->mark_as_taken();
if (this->current_file_handler != NULL) {
this->playing_file = true;
+ // FIXME this is a problem if the stream goes away before the file has finished
this->reply_stream= gcode->stream;
}
this->playing_file = true;
- // Do not output to any stream if we were passed the -q ( quiet ) option
- if( options.find_first_of("Qq") == string::npos ){
- this->current_stream = stream;
- }else{
+ // Output to the current stream if we were passed the -v ( verbose ) option
+ if( options.find_first_of("Vv") == string::npos ){
this->current_stream = &(StreamOutput::NullStream);
+ }else{
+ this->current_stream = stream;
}
// get size of file
stream->printf("pwd\r\n");
stream->printf("cat file [limit]\r\n");
stream->printf("rm file\r\n");
- stream->printf("play file [-q]\r\n");
+ stream->printf("play file [-v]\r\n");
stream->printf("progress - shows progress of current play\r\n");
stream->printf("abort - abort currently playing file\r\n");
stream->printf("reset - reset smoothie\r\n");