Added the option for forced NodeStatus updates on user change or text message, tweaked compass (#256)

This commit is contained in:
Ellie Hussey
2020-07-05 17:03:12 -07:00
committed by GitHub
parent aba5b01fa0
commit 6f7f540c79
4 changed files with 37 additions and 14 deletions

View File

@@ -95,9 +95,9 @@ class NodeDB
NodeInfo *getOrCreateNode(NodeNum n);
/// Notify observers of changes to the DB
void notifyObservers() {
void notifyObservers(bool forceUpdate = false) {
// Notify observers of the current node state
const meshtastic::NodeStatus status = meshtastic::NodeStatus(getNumOnlineNodes(), getNumNodes());
const meshtastic::NodeStatus status = meshtastic::NodeStatus(getNumOnlineNodes(), getNumNodes(), forceUpdate);
newStatus.notifyObservers(&status);
}