Merge "ASM #537 AvnFPS: Syntax failed to flag format error" into asm_14.3.1

Former-commit-id: 312833c363 [formerly e64f60ba98] [formerly b807c877f4] [formerly 312833c363 [formerly e64f60ba98] [formerly b807c877f4] [formerly 0dc1db0072 [formerly b807c877f4 [formerly 5afd4dab62eb48b65bb3f5b49d59444f1d52a23f]]]]
Former-commit-id: 0dc1db0072
Former-commit-id: 8e2d2b7ad8 [formerly 9593ff9ed5] [formerly e7c8279195dcaa2a2f22c354ec5670074da6bbe7 [formerly da9b3dd158]]
Former-commit-id: 9d9cd6d2483bf78d30d97f6c23b6e52f15dfafb0 [formerly db59b081af]
Former-commit-id: edb7266206
This commit is contained in:
Matthew Howard 2014-05-12 13:52:12 -05:00 committed by Gerrit Code Review
commit 27fade89bb

View file

@ -318,7 +318,7 @@
# Date Ticket# Engineer Description
# ------------ ---------- ----------- --------------------------
# 02APR2014 17211 zhao (code obtained from the listserver via Virgil that implements a new rule regarding CB, TS etc)
#
# May 12, 2014 16928 zhao Modified check_prev_time()
#
#
import exceptions, re, time, types
@ -939,6 +939,8 @@ class Decoder(tpg.VerboseParser):
try:
if t['from'] <= max(period['prev']['time']['from'], self._cutoff):
add_msg(t, 'error', 49)
elif t['from'] <= self._taf['vtime']['from']:
add_msg(t, 'error', 49)
if 'ocnl' in period and t['from'] < period['ocnl']['time']['to']:
add_msg(t, 'error', 50)
period['prev']['time']['to'] = t['from']