File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -169,6 +169,8 @@ inline void transportProcess() {
169
169
170
170
}
171
171
transportPresentNode ();
172
+ if (presentation)
173
+ presentation ();
172
174
// Write id to EEPROM
173
175
hwWriteConfig (EEPROM_NODE_ID_ADDRESS, _nc.nodeId );
174
176
debug (PSTR (" id=%d\n " ), _nc.nodeId );
@@ -452,7 +454,14 @@ void transportPresentNode() {
452
454
// Open reading pipe for messages directed to this node (set write pipe to same)
453
455
transportSetAddress (_nc.nodeId );
454
456
// Present node and request config
455
- #ifndef MY_GATEWAY_FEATURE
457
+ #ifdef MY_GATEWAY_FEATURE
458
+ // Send presentation for this gateway device
459
+ #ifdef MY_REPEATER_FEATURE
460
+ present (NODE_SENSOR_ID, S_ARDUINO_REPEATER_NODE);
461
+ #else
462
+ present (NODE_SENSOR_ID, S_ARDUINO_NODE);
463
+ #endif
464
+ else
456
465
if (_nc.nodeId != AUTO) {
457
466
// Send signing preferences for this node
458
467
signerPresentation (_msg);
You can’t perform that action at this time.
0 commit comments