Initial project commit
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
package com.eveningoutpost.dexdrip.G5Model;
|
||||
|
||||
|
||||
// created by jamorham
|
||||
|
||||
import com.eveningoutpost.dexdrip.Models.JoH;
|
||||
import com.eveningoutpost.dexdrip.Models.UserError;
|
||||
|
||||
public class CalibrateTxMessage extends BaseMessage {
|
||||
|
||||
final byte opcode = 0x34;
|
||||
final int length = 9;
|
||||
|
||||
final int glucose;
|
||||
|
||||
public CalibrateTxMessage(int glucose, int dexTime) {
|
||||
init(opcode, length);
|
||||
this.glucose = glucose;
|
||||
data.putShort((short) glucose);
|
||||
data.putInt(dexTime);
|
||||
appendCRC();
|
||||
UserError.Log.d(TAG, "CalibrateGlucoseTxMessage dbg: " + JoH.bytesToHex(byteSequence));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user