Skip to content

Commit

Permalink
added logging when no data was received
Browse files Browse the repository at this point in the history
  • Loading branch information
ai-republic committed Dec 26, 2023
1 parent 9e2454c commit 3676995
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ protected List<ByteBuffer> sendMessage(final int bmsNo, final DalyCommand cmd, f

if (receiveBuffer != null && receiveBuffer.capacity() < port.getFrameLength()) {
LOG.debug("Wrong number of bytes received! {}", Port.printBuffer(receiveBuffer));
} else {
LOG.warn("No bytes received: " + failureCount + "times!");
}

if (failureCount > 10) {
Expand Down
10 changes: 10 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>BMS-to-Inverter</title>
</head>
<body>

</body>
</html>

0 comments on commit 3676995

Please sign in to comment.