Skip to content
Browse files

Fixed log downloading bug

  • Loading branch information...
scaryghost committed Oct 13, 2015
1 parent afc11ca commit 3b88da1dfc1d258004a051ce25844f23312c2684
Showing with 2 additions and 2 deletions.
  1. +2 −2 library/src/main/java/com/mbientlab/metawear/impl/
@@ -503,7 +503,7 @@ public ThreeAxisLoggable(JSONObject state) throws JSONException, ClassNotFoundEx
private static final String JSON_FIELD_EXPECTED_SIZE= "expected_size";

///< Use linked hash map to preserve the order in which log IDs are received from the board
private final LinkedHashMap<Byte, Queue<byte[]>> logEntries;
private final LinkedHashMap<Byte, ConcurrentLinkedQueue<byte[]>> logEntries;
private final int expectedSize;

public VariableLoggable(String key, Collection<Byte> logIds, Class<? extends Message> msgClass, int expectedSize) {
@@ -514,7 +514,7 @@ public VariableLoggable(String key, Collection<Byte> logIds, Class<? extends Mes
logEntries= new LinkedHashMap<>();
for(Byte id: logIds) {
dataLoggers.put(new ResponseHeader(LoggingRegister.READOUT_NOTIFY, id), this);
logEntries.put(id, new LinkedList<byte[]>());
logEntries.put(id, new ConcurrentLinkedQueue<byte[]>());

0 comments on commit 3b88da1

Please sign in to comment.
You can’t perform that action at this time.