Skip to content

Commit bf341ab

Browse files
committed
Node id is a string and must be parsed. The getByte does not parse any more.
1 parent 6f86b8f commit bf341ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/MySensors/MySensor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ boolean MySensor::process() {
332332
for (;;);
333333
} else if (type == I_ID_RESPONSE) {
334334
if (nc.nodeId == AUTO) {
335-
nc.nodeId = msg.getByte();
335+
nc.nodeId = msg.getInt();
336336
// Write id to EEPROM
337337
if (nc.nodeId == AUTO) {
338338
// sensor net gateway will return max id if all sensor id are taken

0 commit comments

Comments
 (0)