Internal messages send from gateway to controller should use sensor id

255
This commit is contained in:
Henrik Ekblad
2015-12-30 16:28:00 +01:00
parent 5406a658ee
commit 29cc42ba37
+1 -1
View File
@@ -248,7 +248,7 @@ static inline MyMessage& build(MyMessage &msg, uint8_t sender, uint8_t destinati
static inline MyMessage& buildGw(MyMessage &msg, uint8_t type) {
msg.sender = GATEWAY_ADDRESS;
msg.destination = GATEWAY_ADDRESS;
msg.sensor = 0;
msg.sensor = 255;
msg.type = type;
mSetCommand(msg, C_INTERNAL);
mSetRequestAck(msg, false);