mirror of
https://github.com/alexhopeoconnor/firmware.git
synced 2026-10-18 17:31:42 +10:00
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:
+2
-1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user