Fixed a bug where han port variable was never set

This commit is contained in:
Roar Fredriksen
2017-09-26 18:53:53 +02:00
parent 65c17dd9ff
commit e9b8f79e6e
4 changed files with 4 additions and 2 deletions

View File

@@ -11,6 +11,7 @@ void HanReader::setup(HardwareSerial *hanPort)
hanPort->begin(2400, SERIAL_8E1);
while (!hanPort) {}
bytesRead = 0;
han = hanPort;
}
void HanReader::setup(HardwareSerial *hanPort, Stream *debugPort)