Update McopySerial to have a sendStr method, which is distinct from print, which should be used for debug logging.

This commit is contained in:
Matt McWilliams 2023-06-17 11:40:56 -04:00
parent 71e4bea384
commit 3881dd4891
14 changed files with 35 additions and 0 deletions

View File

@ -65,6 +65,10 @@ String McopySerial::getString () {
return Serial.readString(); return Serial.readString();
} }
void McopySerial::sendString (String str) {
Serial.println(str);
}
void McopySerial::print (String message) { void McopySerial::print (String message) {
Serial.println(message); Serial.println(message);
} }

View File

@ -77,6 +77,7 @@ class McopySerial {
void confirm(char cmd); void confirm(char cmd);
String getString(); String getString();
void print(String message); void print(String message);
void sendString(String str);
void debug (bool state); void debug (bool state);
void log (String message); void log (String message);

View File

@ -65,6 +65,10 @@ String McopySerial::getString () {
return Serial.readString(); return Serial.readString();
} }
void McopySerial::sendString (String str) {
Serial.println(str);
}
void McopySerial::print (String message) { void McopySerial::print (String message) {
Serial.println(message); Serial.println(message);
} }

View File

@ -77,6 +77,7 @@ class McopySerial {
void confirm(char cmd); void confirm(char cmd);
String getString(); String getString();
void print(String message); void print(String message);
void sendString(String str);
void debug (bool state); void debug (bool state);
void log (String message); void log (String message);

View File

@ -65,6 +65,10 @@ String McopySerial::getString () {
return Serial.readString(); return Serial.readString();
} }
void McopySerial::sendString (String str) {
Serial.println(str);
}
void McopySerial::print (String message) { void McopySerial::print (String message) {
Serial.println(message); Serial.println(message);
} }

View File

@ -77,6 +77,7 @@ class McopySerial {
void confirm(char cmd); void confirm(char cmd);
String getString(); String getString();
void print(String message); void print(String message);
void sendString(String str);
void debug (bool state); void debug (bool state);
void log (String message); void log (String message);

View File

@ -65,6 +65,10 @@ String McopySerial::getString () {
return Serial.readString(); return Serial.readString();
} }
void McopySerial::sendString (String str) {
Serial.println(str);
}
void McopySerial::print (String message) { void McopySerial::print (String message) {
Serial.println(message); Serial.println(message);
} }

View File

@ -77,6 +77,7 @@ class McopySerial {
void confirm(char cmd); void confirm(char cmd);
String getString(); String getString();
void print(String message); void print(String message);
void sendString(String str);
void debug (bool state); void debug (bool state);
void log (String message); void log (String message);

View File

@ -65,6 +65,10 @@ String McopySerial::getString () {
return Serial.readString(); return Serial.readString();
} }
void McopySerial::sendString (String str) {
Serial.println(str);
}
void McopySerial::print (String message) { void McopySerial::print (String message) {
Serial.println(message); Serial.println(message);
} }

View File

@ -77,6 +77,7 @@ class McopySerial {
void confirm(char cmd); void confirm(char cmd);
String getString(); String getString();
void print(String message); void print(String message);
void sendString(String str);
void debug (bool state); void debug (bool state);
void log (String message); void log (String message);

View File

@ -65,6 +65,10 @@ String McopySerial::getString () {
return Serial.readString(); return Serial.readString();
} }
void McopySerial::sendString (String str) {
Serial.println(str);
}
void McopySerial::print (String message) { void McopySerial::print (String message) {
Serial.println(message); Serial.println(message);
} }

View File

@ -77,6 +77,7 @@ class McopySerial {
void confirm(char cmd); void confirm(char cmd);
String getString(); String getString();
void print(String message); void print(String message);
void sendString(String str);
void debug (bool state); void debug (bool state);
void log (String message); void log (String message);

View File

@ -65,6 +65,10 @@ String McopySerial::getString () {
return Serial.readString(); return Serial.readString();
} }
void McopySerial::sendString (String str) {
Serial.println(str);
}
void McopySerial::print (String message) { void McopySerial::print (String message) {
Serial.println(message); Serial.println(message);
} }

View File

@ -77,6 +77,7 @@ class McopySerial {
void confirm(char cmd); void confirm(char cmd);
String getString(); String getString();
void print(String message); void print(String message);
void sendString(String str);
void debug (bool state); void debug (bool state);
void log (String message); void log (String message);