we now send gps locations into the mesh and update our nodedb

This commit is contained in:
geeksville
2020-02-06 08:49:33 -08:00
parent 9625bcbd9e
commit 241e262f5c
6 changed files with 67 additions and 28 deletions

View File

@@ -29,8 +29,17 @@ public:
delete[] buf;
}
/// Return a queable object which has been prefilled with zeros
T *allocZeroed(TickType_t maxWait = portMAX_DELAY) {
/// Return a queable object which has been prefilled with zeros. Panic if no buffer is available
T *allocZeroed() {
T *p = allocZeroed(0);
assert(p); // FIXME panic instead
return p;
}
/// Return a queable object which has been prefilled with zeros - allow timeout to wait for available buffers (you probably don't want this version)
T *allocZeroed(TickType_t maxWait) {
T *p = dead.dequeuePtr(maxWait);
if(p)