Browse Source

* repeater CLI: 'neighbors' command now responds with "-none-" if no neighbors

pull/244/head
Scott Powell 1 year ago
parent
commit
c0870960d6
  1. 3
      examples/simple_repeater/main.cpp

3
examples/simple_repeater/main.cpp

@ -666,6 +666,9 @@ public:
while (*dp) dp++; // find end of string while (*dp) dp++; // find end of string
} }
#endif #endif
if (dp == reply) { // no neighbours, need empty response
strcpy(dp, "-none-"); dp += 6;
}
*dp = 0; // null terminator *dp = 0; // null terminator
} }

Loading…
Cancel
Save