Quieten some more debug messages. Fix a misleading clock status return.

This commit is contained in:
Mike Brady
2021-05-10 16:03:02 +01:00
parent 04c7f84564
commit a563d5e847
4 changed files with 17 additions and 16 deletions
+5 -1
View File
@@ -82,7 +82,11 @@ int ptp_get_clock_info(uint64_t *actual_clock_id, uint64_t *raw_offset) {
response = clock_no_master;
}
} else {
response = clock_version_mismatch;
// the version can not be zero. If zero is returned here, it means that the shared memory is not yet initialised, so not availalbe
if (nqptp_data.version == 0)
response = clock_service_unavailable;
else
response = clock_version_mismatch;
}
} else {
response = clock_data_unavailable;