From a0a76d70b0014fbc80c529e0e34742b24f111bb9 Mon Sep 17 00:00:00 2001 From: Tomer Rubinstein Date: Mon, 30 Dec 2019 11:50:31 -0600 Subject: [PATCH] ZoomH6: fix send command always returning false after sending the desired command to the Zoom Recorder we wait for a given delay time and the send a release button command. the release button command will not always return status from the recorder, so checking its reply and returning false if no reply might cause us to always return false even if the command was successfully committed. --- src/ZoomH6.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ZoomH6.cpp b/src/ZoomH6.cpp index 6a5c5be..bd3bd1e 100644 --- a/src/ZoomH6.cpp +++ b/src/ZoomH6.cpp @@ -108,7 +108,7 @@ bool ZoomH6Remote::sendCommand(byte primary, byte secondary, uint32_t gap, byte* if (gap) delay(gap); - if (!writeWithReply(releaseCom, 2, nullptr, 3)) return false; + writeWithReply(releaseCom, 2, nullptr, 3); return true; }