Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ public static CommandData fromHoldFLushAction(final holdFlushAction action) {
switch (action) {
case HOLD: return new CommandData((byte) 0x00);
case FLUSH: return new CommandData((byte) 0x01);
case RESET: return new CommandData((byte) 0xFF);
default: return new CommandData((byte) 0x03);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,12 @@ public byte[] toBytes() {
return new byte[]{(byte) 0x01};
}
},
/** Reset and flush all stacked holds (doc section 4.6): "the way to recover
when the state of the device is unknown". */
RESET {
@Override
public byte[] toBytes() {
return new byte[]{(byte) 0xFF};
}
},
}