mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-01-25 20:06:08 +00:00
Fixed a bug where han port variable was never set
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user