[Debian-iot-packaging] [openzwave-controlpanel] 13/81: Update notification types
Dara Adib
daradib-guest at moszumanska.debian.org
Thu Dec 22 16:57:45 UTC 2016
This is an automated email from the git hooks/post-receive script.
daradib-guest pushed a commit to branch debian/master
in repository openzwave-controlpanel.
commit fcbfaed2a4da82b06b5e4a713b6028e6d4962869
Author: glsatz at gmail.com <glsatz at gmail.com>
Date: Wed Aug 10 22:42:18 2011 +0000
Update notification types
---
ozwcp.cpp | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/ozwcp.cpp b/ozwcp.cpp
index 7450309..7dc3851 100644
--- a/ozwcp.cpp
+++ b/ozwcp.cpp
@@ -523,6 +523,19 @@ void OnNotification (Notification const* _notification, void* _context)
cmode = "Slave";
pthread_mutex_unlock(&glock);
break;
+ case Notification::Type_DriverFailed:
+ Log::Write("Notification: Driver Failed, homeId %08x", _notification->GetHomeId());
+ pthread_mutex_lock(&glock);
+ done = false;
+ needsave = false;
+ homeId = 0;
+ cmode = "";
+ pthread_mutex_unlock(&glock);
+ pthread_mutex_lock(&nlock);
+ for (int i = 1; i <= MAX_NODES; i++)
+ MyNode::remove(i);
+ pthread_mutex_unlock(&nlock);
+ break;
case Notification::Type_DriverReset:
Log::Write("Notification: Driver Reset, homeId %08x", _notification->GetHomeId());
pthread_mutex_lock(&glock);
@@ -548,7 +561,7 @@ void OnNotification (Notification const* _notification, void* _context)
Log::Write("Notification: Node %d Queries Complete", _notification->GetNodeId());
break;
case Notification::Type_EssentialNodeQueriesComplete:
- Log::Write("Notification: Essential Node %d Queries", _notification->GetNodeId());
+ Log::Write("Notification: Essential Node %d Queries Complete", _notification->GetNodeId());
break;
case Notification::Type_AwakeNodesQueried:
Log::Write("Notification: Awake Nodes Queried");
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-iot/openzwave-controlpanel.git
More information about the Debian-iot-packaging
mailing list