mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-03-28 19:11:57 +00:00
Added more debugging code. Also some changes after testing
This commit is contained in:
@@ -31,7 +31,7 @@ void HanReader::setAuthenticationKey(uint8_t* authentication_key) {
|
||||
|
||||
|
||||
bool HanReader::read(byte data) {
|
||||
if (reader.Read(data)) {
|
||||
if (reader.Read(data, debugger->isActive(RemoteDebug::DEBUG) ? debugger : NULL)) {
|
||||
bytesRead = reader.GetRawData(buffer, 0, 512);
|
||||
if (debugger->isActive(RemoteDebug::INFO)) {
|
||||
printI("Got valid DLMS data (%d bytes)", bytesRead);
|
||||
|
||||
Reference in New Issue
Block a user