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:
1 parent
6ad451eb5f
commit
640cb3bf7f
4 files changed
+22
-8
No files matched your search
+3
-1
@@ -322,7 +322,7 @@ void MeshService::sendOurPosition(NodeNum dest, bool wantReplies)
|
||||
sendToMesh(p);
|
||||
}
|
||||
|
||||
void MeshService::onGPSChanged(void *unused)
|
||||
int MeshService::onGPSChanged(void *unused)
|
||||
{
|
||||
DEBUG_MSG("got gps notify\n");
|
||||
|
||||
@@ -354,4 +354,6 @@ void MeshService::onGPSChanged(void *unused)
|
||||
|
||||
releaseToPool(p);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in new issue
Block a user