From 14b812f5e3e809e138c9acb95b7a2ee0a4ecfc93 Mon Sep 17 00:00:00 2001 From: Adam Wujek <adam.wujek@cern.ch> Date: Fri, 18 Aug 2017 13:45:24 +0200 Subject: [PATCH] [BUG: 1632] userspace/snmpd: display PTP OIDs even if GM is not able to lock to 10MHz Signed-off-by: Adam Wujek <adam.wujek@cern.ch> --- userspace/snmpd/wrsPtpDataTable.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/userspace/snmpd/wrsPtpDataTable.c b/userspace/snmpd/wrsPtpDataTable.c index 5f6c0a6df..cb9a50767 100644 --- a/userspace/snmpd/wrsPtpDataTable.c +++ b/userspace/snmpd/wrsPtpDataTable.c @@ -67,7 +67,9 @@ time_t wrsPtpDataTable_data_fill(unsigned int *n_rows) /* check whether shmem is available */ if (!shmem_ready_ppsi()) { snmp_log(LOG_ERR, "%s: Unable to read PPSI's shmem\n", __func__); - n_rows_local = 0; + /* Keep one empty instance. If set to 0 all PPSI related OIDs + * disappear */ + n_rows_local = 1; return time_update; } else { n_rows_local = WRS_MAX_N_SERVO_INSTANCES; -- GitLab