Change RF95 to deliver packets straight from ISR and no polling for anything

This commit is contained in:
geeksville
2020-02-18 20:06:01 -08:00
parent bf491efddf
commit acce254685
11 changed files with 324 additions and 62 deletions

View File

@@ -218,7 +218,7 @@ void MeshService::handleToRadio(std::string s)
void MeshService::sendToMesh(MeshPacket *p)
{
nodeDB.updateFrom(*p); // update our local DB for this packet (because phone might have sent position packets etc...)
assert(radio.send(p) == pdTRUE);
assert(radio.send(p) == ERRNO_OK);
}
MeshPacket *MeshService::allocForSending()