From 5beddce629c338614c0880482a918a5dd921eebf Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 22 May 2018 16:52:17 +0100 Subject: [PATCH] BLOCKS: Fix an issue where firmware ACK messages could be read out of order --- modules/juce_blocks_basics/protocol/juce_HostPacketDecoder.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/juce_blocks_basics/protocol/juce_HostPacketDecoder.h b/modules/juce_blocks_basics/protocol/juce_HostPacketDecoder.h index ddac5af1ee..2273f66798 100644 --- a/modules/juce_blocks_basics/protocol/juce_HostPacketDecoder.h +++ b/modules/juce_blocks_basics/protocol/juce_HostPacketDecoder.h @@ -308,7 +308,10 @@ struct HostPacketDecoder return false; } - handler.handleFirmwareUpdateACK (deviceIndex, reader.read(), reader.read()); + auto ackCode = reader.read(); + auto ackDetail = reader.read(); + + handler.handleFirmwareUpdateACK (deviceIndex, ackCode, ackDetail); return true; }