Update McopySerial to have a sendStr method, which is distinct from print, which should be used for debug logging.
This commit is contained in:
parent
71e4bea384
commit
3881dd4891
|
@ -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);
|
||||||
}
|
}
|
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue