allow observers to return an error code to abort further processing

Will allow me to use observers to generalize the various hooks
that need to run to preflight sleep entry.
This commit is contained in:
geeksville
2020-04-10 12:40:44 -07:00
parent 6ad451eb5f
commit 640cb3bf7f
4 changed files with 22 additions and 8 deletions
+2 -1
View File
@@ -80,7 +80,8 @@ class MeshService
void sendToMesh(MeshPacket *p);
/// Called when our gps position has changed - updates nodedb and sends Location message out into the mesh
void onGPSChanged(void *arg);
/// returns 0 to allow futher processing
int onGPSChanged(void *arg);
/// handle all the packets that just arrived from the mesh radio
void handleFromRadio();