mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-20 17:52:35 +00: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:
@@ -222,10 +222,11 @@ class FromNumCharacteristic : public CallbackCharacteristic, public Observer<uin
|
||||
}
|
||||
|
||||
/// If the mesh service tells us fromNum has changed, tell the phone
|
||||
virtual void onNotify(uint32_t newValue)
|
||||
virtual int onNotify(uint32_t newValue)
|
||||
{
|
||||
setValue(newValue);
|
||||
notify();
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user