update nodedb based on rx packets

1.2-legacy
geeksville 2020-02-03 20:24:07 -08:00
rodzic df2b40f5a1
commit d0027e9f6a
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -49,8 +49,7 @@ void MeshService::loop()
MeshPacket *mp;
uint32_t oldFromNum = fromNum;
while((mp = fromRadioQueue.dequeuePtr(0)) != NULL) {
// FIXME, process the packet locally to update our node DB, update the LCD screen etc...
Serial.printf("FIXME, skipping local processing of fromRadio\n");
nodeDB.updateFrom(*mp);
fromNum++;
assert(toPhoneQueue.enqueue(mp , 0) == pdTRUE); // FIXME, instead of failing for full queue, delete the oldest mssages