Skip to content

Commit

Permalink
This Should be byte
Browse files Browse the repository at this point in the history
  • Loading branch information
Fishwaldo committed Jul 9, 2020
1 parent e60388a commit ac3d0d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/src/command_classes/SwitchMultilevel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -303,9 +303,9 @@ namespace OpenZWave
}
case ValueID_Index_SwitchMultiLevel::Duration:
{
if (Internal::VC::ValueByte* value = static_cast<Internal::VC::ValueByte*>(GetValue(instance, ValueID_Index_SwitchMultiLevel::Duration)))
if (Internal::VC::ValueInt* value = static_cast<Internal::VC::ValueInt*>(GetValue(instance, ValueID_Index_SwitchMultiLevel::Duration)))
{
value->OnValueRefreshed((static_cast<Internal::VC::ValueByte const*>(&_value))->GetValue());
value->OnValueRefreshed((static_cast<Internal::VC::ValueInt const*>(&_value))->GetValue());
value->Release();
}
res = true;
Expand Down

0 comments on commit ac3d0d6

Please sign in to comment.