Present node device for gateways as well. See PR #420.

This commit is contained in:
Henrik Ekblad
2016-05-01 21:50:50 +02:00
parent 154beedcb8
commit bbc6a221f4
+8 -1
View File
@@ -454,7 +454,14 @@ void transportPresentNode() {
// Open reading pipe for messages directed to this node (set write pipe to same)
transportSetAddress(_nc.nodeId);
// Present node and request config
#ifndef MY_GATEWAY_FEATURE
#ifdef MY_GATEWAY_FEATURE
// Send presentation for this gateway device
#ifdef MY_REPEATER_FEATURE
present(NODE_SENSOR_ID, S_ARDUINO_REPEATER_NODE);
#else
present(NODE_SENSOR_ID, S_ARDUINO_NODE);
#endif
else
if (_nc.nodeId != AUTO) {
// Send signing preferences for this node
signerPresentation(_msg);