@@ -37,8 +37,8 @@ int MarlinDriver::update() {
3737 // during startup we use this to check for a valid connection, when it's established we stop checking
3838 if (checkConnection_) {
3939 if (checkTemperatureAttempt_ < maxCheckTemperatureAttempts_) {
40- LOG (Logger::VERBOSE , " (checking connection) check temperature %i/%i" , checkTemperatureAttempt_, maxCheckTemperatureAttempts_);
41- checkTemperature ();
40+ LOG (Logger::INFO , " (checking connection) check temperature %i/%i" , checkTemperatureAttempt_, maxCheckTemperatureAttempts_);
41+ checkTemperature (true );
4242 checkTemperatureAttempt_++;
4343 } else {
4444 switchBaudrate ();
@@ -86,7 +86,7 @@ void MarlinDriver::readResponseCode(string& code) {
8686 */
8787 // filterText(code, "\x0D\x0E\x1B"); //not sure if replacing these is enough
8888
89- LOG (Logger::BULK, " readResponseCode(): '%s'" ,code.c_str ());
89+ LOG (checkConnection_ ? Logger::INFO : Logger::BULK, " readResponseCode(): '%s'" ,code.c_str ());
9090
9191 bool tempMessage = (code.find (" ok T:" ) == 0 );
9292 bool heatingMessage = (code.find (" T:" ) == 0 );
@@ -165,12 +165,12 @@ void MarlinDriver::parseTemperatures(string& code) {
165165 }
166166}
167167
168- void MarlinDriver::checkTemperature () {
169- sendCode (" M105" );
168+ void MarlinDriver::checkTemperature (bool logAsInfo ) {
169+ sendCode (" M105" , logAsInfo );
170170}
171171
172- void MarlinDriver::sendCode (const string& code) {
173- LOG (Logger::BULK, " sendCode(): %s" , code.c_str ());
172+ void MarlinDriver::sendCode (const string& code, bool logAsInfo ) {
173+ LOG (logAsInfo ? Logger::INFO : Logger::BULK, " sendCode(): %s" , code.c_str ());
174174 if (isConnected ()) {
175175 AbstractDriver::extractGCodeInfo (code);
176176 serial_.send ((code + " \n " ).c_str ());
0 commit comments