Initial project commit

This commit is contained in:
2020-07-18 21:44:27 -04:00
parent 8a1141b373
commit fea891a268
127 changed files with 20838 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
package com.eveningoutpost.dexdrip.G5Model;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
// created by jamorham
public class BackFillRxMessage extends BaseMessage {
public static final int opcode = 0x51;
private static final int length = 20;
private boolean valid = false;
BackFillRxMessage(byte[] packet) {
if (packet.length == length) {
data = ByteBuffer.wrap(packet).order(ByteOrder.LITTLE_ENDIAN);
if ((data.get() == opcode) && checkCRC(packet)) {
valid = true;
// meh
// 51 00 01 01 A1A00200 DDAF0200 82000000 2361 1625
}
}
}
public boolean valid() {
return valid;
}
}