fix up assert for Notifications

This commit is contained in:
Justin Hammond 2019-11-06 11:28:27 +08:00
parent 5e25c94bc0
commit 2b351cf6bf
2 changed files with 6 additions and 1 deletions

2
.gitignore vendored
View file

@ -41,3 +41,5 @@ target_wrapper.*
# QtCreator CMake
CMakeLists.txt.user*
.vscode

View file

@ -214,7 +214,10 @@ void OZWNotification::processNotification
case OpenZWave::Notification::Type_UserAlerts:
{
emit Get()->ozwUserAlert(_notification->GetNodeId(), static_cast<OpenZWave::Notification::UserAlertNotification>(_notification->GetUserAlertType()), _notification->GetRetry());
quint8 retry = 0;
if (static_cast<OpenZWave::Notification::UserAlertNotification>(_notification->GetUserAlertType()) == OpenZWave::Notification::Alert_ApplicationStatus_Retry)
retry = _notification->GetRetry();
emit Get()->ozwUserAlert(_notification->GetNodeId(), static_cast<OpenZWave::Notification::UserAlertNotification>(_notification->GetUserAlertType()), retry);
break;
}