Merge "[PTP] No longer consider clockClass 7 and 135 as locked"
This commit is contained in:
commit
918fab1ea0
@ -27,9 +27,7 @@ MASTER_MODE = "master"
|
||||
TIME_IS_TRACEABLE1 = "1"
|
||||
TIME_IS_TRACEABLE2 = "true"
|
||||
GM_IS_PRESENT = "true"
|
||||
CLOCK_CLASS_VALUE1 = "6"
|
||||
CLOCK_CLASS_VALUE2 = "7"
|
||||
CLOCK_CLASS_VALUE3 = "135"
|
||||
CLOCK_CLASS_VALUE6 = "6"
|
||||
# ts2phc constants
|
||||
NMEA_SERIALPORT = "ts2phc.nmea_serialport"
|
||||
GNSS_PIN = "GNSS-1PPS"
|
||||
|
@ -86,9 +86,7 @@ def check_results(result, total_ptp_keywords, port_count):
|
||||
and result[constants.TIME_TRACEABLE].lower != constants.TIME_IS_TRACEABLE2):
|
||||
sync_state = constants.FREERUN_PHC_STATE
|
||||
if (result[constants.GM_CLOCK_CLASS] not in
|
||||
[constants.CLOCK_CLASS_VALUE1,
|
||||
constants.CLOCK_CLASS_VALUE2,
|
||||
constants.CLOCK_CLASS_VALUE3]):
|
||||
[constants.CLOCK_CLASS_VALUE6]):
|
||||
sync_state = constants.FREERUN_PHC_STATE
|
||||
return sync_state
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user