mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-23 17:13:38 +00:00
update nodedb based on rx packets
This commit is contained in:
parent
df2b40f5a1
commit
d0027e9f6a
@ -49,8 +49,7 @@ void MeshService::loop()
|
|||||||
MeshPacket *mp;
|
MeshPacket *mp;
|
||||||
uint32_t oldFromNum = fromNum;
|
uint32_t oldFromNum = fromNum;
|
||||||
while((mp = fromRadioQueue.dequeuePtr(0)) != NULL) {
|
while((mp = fromRadioQueue.dequeuePtr(0)) != NULL) {
|
||||||
// FIXME, process the packet locally to update our node DB, update the LCD screen etc...
|
nodeDB.updateFrom(*mp);
|
||||||
Serial.printf("FIXME, skipping local processing of fromRadio\n");
|
|
||||||
|
|
||||||
fromNum++;
|
fromNum++;
|
||||||
assert(toPhoneQueue.enqueue(mp , 0) == pdTRUE); // FIXME, instead of failing for full queue, delete the oldest mssages
|
assert(toPhoneQueue.enqueue(mp , 0) == pdTRUE); // FIXME, instead of failing for full queue, delete the oldest mssages
|
||||||
|
Loading…
Reference in New Issue
Block a user