Skip to content
Permalink
Browse files

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

  • Loading branch information...
henrikekblad committed May 1, 2016
1 parent 154beed commit bbc6a221f4c153f41993207e521f5531ba853d1a
Showing with 8 additions and 1 deletion.
  1. +8 −1 libraries/MySensors/core/MyTransport.cpp
@@ -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);

0 comments on commit bbc6a22

Please sign in to comment.
You can’t perform that action at this time.