|
|
@@ -217,12 +217,12 @@ func processPacket(packet []byte) {
|
|
|
action.InterruptRunningTask("PAD-TMS") //PAD-TMS interrupt other
|
|
|
|
|
|
AlarmHandleTMS(packet)
|
|
|
- if active.QueueTimer != nil {
|
|
|
- if active.SetTimer {
|
|
|
- active.QueueTimer.Stop()
|
|
|
- active.SetTimer = false
|
|
|
- }
|
|
|
+
|
|
|
+ if active.SetTimer {
|
|
|
+ active.QueueTimer.Stop()
|
|
|
+ active.SetTimer = false
|
|
|
}
|
|
|
+
|
|
|
} else {
|
|
|
alstatus.PaStatus("", "PAD-TMS", "refuse")
|
|
|
}
|
|
|
@@ -237,11 +237,10 @@ func processPacket(packet []byte) {
|
|
|
if priority.CheckPriority("PAD-ICP") {
|
|
|
|
|
|
action.InterruptRunningTask("PAD-ICP") //PAD-ICP interrupt other
|
|
|
- if active.QueueTimer != nil {
|
|
|
- if active.SetTimer {
|
|
|
- active.QueueTimer.Stop()
|
|
|
- active.SetTimer = false
|
|
|
- }
|
|
|
+
|
|
|
+ if active.SetTimer {
|
|
|
+ active.QueueTimer.Stop()
|
|
|
+ active.SetTimer = false
|
|
|
}
|
|
|
|
|
|
AlarmHandleICP(packet) //
|