diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2023-08-15 10:37:45 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2023-08-15 10:37:45 +0200 |
commit | 2980f73251c631960fcbe048eda861afa7a1be89 (patch) | |
tree | d648100ba4d88378f31415b5627494000bb79acc /src/output/SDR.cpp | |
parent | 6c0732dcfc2af963e2b8577e9fc38f71307a1033 (diff) | |
download | dabmod-2980f73251c631960fcbe048eda861afa7a1be89.tar.gz dabmod-2980f73251c631960fcbe048eda861afa7a1be89.tar.bz2 dabmod-2980f73251c631960fcbe048eda861afa7a1be89.zip |
Dexter: Add in_holdover_since metric
Diffstat (limited to 'src/output/SDR.cpp')
-rw-r--r-- | src/output/SDR.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/output/SDR.cpp b/src/output/SDR.cpp index d2956a2..d57e4d6 100644 --- a/src/output/SDR.cpp +++ b/src/output/SDR.cpp @@ -99,6 +99,16 @@ SDR::SDR(SDRDeviceConfig& config, std::shared_ptr<SDRDevice> device) : RC_ADD_PARAMETER(fifo_fill, "A value representing the Lime FIFO fullness [percent]"); } #endif // HAVE_LIMESDR + +#ifdef HAVE_DEXTER + if (std::dynamic_pointer_cast<Dexter>(device)) { + RC_ADD_PARAMETER(in_holdover_since, "DEXTER timestamp when holdover began"); + RC_ADD_PARAMETER(remaining_holdover_s, "DEXTER remaining number of seconds in holdover"); + RC_ADD_PARAMETER(clock_state, "DEXTER clock state: startup/normal/holdover"); + } +#endif // HAVE_DEXTER + + } SDR::~SDR() |