Initial project commit
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
package com.eveningoutpost.dexdrip.G5Model;
|
||||
|
||||
import com.eveningoutpost.dexdrip.Models.JoH;
|
||||
|
||||
// created by jamorham
|
||||
|
||||
public class SessionStopTxMessage extends BaseMessage {
|
||||
|
||||
final byte opcode = 0x28;
|
||||
final int length = 7;
|
||||
{
|
||||
postExecuteGuardTime = 1000;
|
||||
}
|
||||
|
||||
SessionStopTxMessage(int stopTime) {
|
||||
|
||||
init(opcode, length);
|
||||
data.putInt(stopTime);
|
||||
appendCRC();
|
||||
}
|
||||
|
||||
SessionStopTxMessage(String transmitterId) {
|
||||
final int stopTime = DexTimeKeeper.getDexTime(transmitterId, JoH.tsl());
|
||||
init(opcode, 7);
|
||||
data.putInt(stopTime);
|
||||
appendCRC();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user