Skip to content

Commit ac3d0d6

Browse files
committed
This Should be byte
1 parent e60388a commit ac3d0d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/src/command_classes/SwitchMultilevel.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,9 @@ namespace OpenZWave
303303
}
304304
case ValueID_Index_SwitchMultiLevel::Duration:
305305
{
306-
if (Internal::VC::ValueByte* value = static_cast<Internal::VC::ValueByte*>(GetValue(instance, ValueID_Index_SwitchMultiLevel::Duration)))
306+
if (Internal::VC::ValueInt* value = static_cast<Internal::VC::ValueInt*>(GetValue(instance, ValueID_Index_SwitchMultiLevel::Duration)))
307307
{
308-
value->OnValueRefreshed((static_cast<Internal::VC::ValueByte const*>(&_value))->GetValue());
308+
value->OnValueRefreshed((static_cast<Internal::VC::ValueInt const*>(&_value))->GetValue());
309309
value->Release();
310310
}
311311
res = true;

0 commit comments

Comments
 (0)