Initial project commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package com.eveningoutpost.dexdrip.G5Model;
|
||||
|
||||
// jamorham
|
||||
|
||||
import java.nio.ByteBuffer;
|
||||
import java.nio.ByteOrder;
|
||||
|
||||
public class InvalidRxMessage extends BaseMessage {
|
||||
|
||||
public static final byte opcode = (byte) 0xFF;
|
||||
private static final int length = 3;
|
||||
|
||||
InvalidRxMessage(byte[] packet) {
|
||||
|
||||
if ((packet.length == length) && packet[0] == opcode) {
|
||||
data = ByteBuffer.wrap(packet).order(ByteOrder.LITTLE_ENDIAN);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user