From 58fa7fc939abc1df13caece886126466e7b06d95 Mon Sep 17 00:00:00 2001 From: Ben Youngblood Date: Wed, 24 Apr 2024 14:18:28 -0700 Subject: [PATCH] Allow 4 byte input for Door Lock Operation Report (#919) Added to support a lock that only sends 4 bytes. --- lib/grizzly/zwave/commands/door_lock_operation_report.ex | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/grizzly/zwave/commands/door_lock_operation_report.ex b/lib/grizzly/zwave/commands/door_lock_operation_report.ex index 69af2319..26566254 100644 --- a/lib/grizzly/zwave/commands/door_lock_operation_report.ex +++ b/lib/grizzly/zwave/commands/door_lock_operation_report.ex @@ -165,6 +165,9 @@ defmodule Grizzly.ZWave.Commands.DoorLockOperationReport do end end + # This is to support a lock that erroneously omits the timeout_seconds field. + def decode_params(bin) when byte_size(bin) == 4, do: decode_params(<>) + # Version 4 def decode_params( <