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

Former-commit-id: e64f60ba98 [formerly b807c877f4] [formerly 0dc1db0072 [formerly 5afd4dab62eb48b65bb3f5b49d59444f1d52a23f]]
Former-commit-id: 0dc1db0072
Former-commit-id: da9b3dd158
This commit is contained in:
Matthew Howard 2014-05-12 13:52:12 -05:00 committed by Gerrit Code Review
commit 9593ff9ed5

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']