Node id is a string and must be parsed. The getByte does not parse any more.

This commit is contained in:
Henrik Ekblad
2014-09-08 07:32:16 +02:00
parent 6f86b8fcc7
commit bf341ab49c
+1 -1
View File
@@ -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