mirror of
https://github.com/Fishwaldo/qt-openzwave.git
synced 2025-03-15 11:31:33 +00:00
fix up assert for Notifications
This commit is contained in:
parent
5e25c94bc0
commit
2b351cf6bf
2 changed files with 6 additions and 1 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -41,3 +41,5 @@ target_wrapper.*
|
|||
|
||||
# QtCreator CMake
|
||||
CMakeLists.txt.user*
|
||||
|
||||
.vscode
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue