* repeater CLI: 'neighbors' command now responds with "-none-" if no neighbors
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user