This commit is contained in:
Yuri Trikoz
2020-06-24 01:46:05 +03:00
parent 7dd13b7fcf
commit f9933ea55e
3 changed files with 1 additions and 7 deletions

View File

@@ -114,7 +114,7 @@ enum State { ST_INACTIVE,
class Terminal : public Print {
public:
Terminal(Stream *stream = nullptr);
~Terminal();
void setStream(Stream *stream);
void setEOL(EOLType_t code);
void enableControlCodes(bool enabled = true);

View File

@@ -523,10 +523,6 @@ void serialBegin() {
delete mySerial;
}
if (term) {
delete term;
}
mySerial = new SoftwareSerial(rxPin.toInt(), txPin.toInt());
mySerial->begin(s_speed.toInt());

View File

@@ -16,8 +16,6 @@ void Terminal::setStream(Stream *stream) {
_stream = stream;
}
Terminal::~Terminal() {}
void Terminal::setOnReadLine(TerminalInputEventHandler h) { inputHandler_ = h; }
void Terminal::setOnEvent(TerminalEventHandler h) { eventHandler_ = h; }