more closely check for time information being available.

This commit is contained in:
Mike Brady
2021-05-11 18:52:02 +01:00
parent 2b88215f09
commit 3f77994948
4 changed files with 374 additions and 349 deletions
+2 -1
View File
@@ -82,7 +82,8 @@ int ptp_get_clock_info(uint64_t *actual_clock_id, uint64_t *raw_offset) {
response = clock_no_master;
}
} else {
// the version can not be zero. If zero is returned here, it means that the shared memory is not yet initialised, so not availalbe
// 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