From bf341ab49cf2a5f41d6610a32a801ce2d93bd1eb Mon Sep 17 00:00:00 2001 From: Henrik Ekblad Date: Mon, 8 Sep 2014 07:32:16 +0200 Subject: [PATCH] Node id is a string and must be parsed. The getByte does not parse any more. --- libraries/MySensors/MySensor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/MySensors/MySensor.cpp b/libraries/MySensors/MySensor.cpp index f32b6e1..0f2399b 100755 --- a/libraries/MySensors/MySensor.cpp +++ b/libraries/MySensors/MySensor.cpp @@ -332,7 +332,7 @@ boolean MySensor::process() { for (;;); } else if (type == I_ID_RESPONSE) { if (nc.nodeId == AUTO) { - nc.nodeId = msg.getByte(); + nc.nodeId = msg.getInt(); // Write id to EEPROM if (nc.nodeId == AUTO) { // sensor net gateway will return max id if all sensor id are taken