Skip to content

Commit 3fb6a8e

Browse files
authored
Merge pull request #2 from davidbrodrick/master
Fix typo that makes data get a nibble out of kilter when sending.
2 parents 1e7e5e9 + a17374d commit 3fb6a8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MKRWAN_v2.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ class LoRaModem : public Stream
781781
String msg_buf;
782782
// Convert buff to hex
783783
for (size_t i=0; i<len; i++) {
784-
if (buff[i] < 10) {
784+
if (buff[i] < 16) {
785785
msg_buf += "0";
786786
}
787787
msg_buf += String(buff[i], HEX);

0 commit comments

Comments
 (0)