add ignore_incoming to user preferences, for automated testing of DSR topologies

This commit is contained in:
geeksville
2020-05-23 10:01:36 -07:00
parent c9cb293bf2
commit 16812c3ee4
5 changed files with 39 additions and 8 deletions

View File

@@ -64,3 +64,12 @@ bool writecb(pb_ostream_t *stream, const uint8_t *buf, size_t count)
return false;
#endif
}
bool is_in_helper(uint32_t n, const uint32_t *array, pb_size_t count)
{
for (int i = 0; i < count; i++)
if (array[i] == n)
return true;
return false;
}