@@ -305,7 +305,7 @@ const char* getControllerErrorAsStr(OpenZWave::Driver::ControllerError _err) {
305305}
306306
307307// backport code from OpenZWave to get notification help message
308- const std::string NotificationGetAsString (Notification const *n) {
308+ const std::string getNotifHelpMsg (Notification const *n) {
309309#if OPENZWAVE_SECURITY == 1
310310 return n->GetAsString ();
311311#else
@@ -369,36 +369,6 @@ const std::string NotificationGetAsString(Notification const *n) {
369369 break ;
370370 case Notification::Type_DriverRemoved:
371371 str = " DriverRemoved" ; break ;
372- case Notification::Type_ControllerCommand:
373- switch (n->GetEvent ()) {
374- case Driver::ControllerState_Normal:
375- str = " ControlerCommand - Normal" ; break ;
376- case Driver::ControllerState_Starting:
377- str = " ControllerComand - Starting" ; break ;
378- case Driver::ControllerState_Cancel:
379- str = " ControllerCommand - Canceled" ; break ;
380- case Driver::ControllerState_Error:
381- str = " ControllerCommand - Error - " ;
382- str.append (getControllerErrorAsStr ((OpenZWave::Driver::ControllerError) n->GetByte ()));
383- break ;
384- case Driver::ControllerState_Waiting:
385- str = " ControllerCommand - Waiting" ; break ;
386- case Driver::ControllerState_Sleeping:
387- str = " ControllerCommand - Sleeping" ; break ;
388- case Driver::ControllerState_InProgress:
389- str = " ControllerCommand - InProgress" ; break ;
390- case Driver::ControllerState_Completed:
391- str = " ControllerCommand - Completed" ; break ;
392- case Driver::ControllerState_Failed:
393- str = " ControllerCommand - Failed" ; break ;
394- case Driver::ControllerState_NodeOK:
395- str = " ControllerCommand - NodeOK" ; break ;
396- case Driver::ControllerState_NodeFailed:
397- str = " ControllerCommand - NodeFailed" ; break ;
398- }
399- break ;
400- case Notification::Type_NodeReset:
401- str = " Node Reset" ; break ;
402372 }
403373 return str;
404374#endif
0 commit comments