reference: don't report synchronized status after unknown step
The source handler resets SST instances on an unknown step, which
makes the sources unselectable, but SRC_SelectSource() doesn't call
REF_SetUnsynchronised() when no source is selectable.
Handle the step in the reference handler.
Fixes: 049eae661a
("sources: keep synchronized status with unreachable/unselectable sources")
This commit is contained in:
parent
fb2849b230
commit
18d7ea62b3
2 changed files with 2 additions and 1 deletions
|
@ -168,6 +168,7 @@ handle_slew(struct timespec *raw,
|
||||||
|
|
||||||
if (change_type == LCL_ChangeUnknownStep) {
|
if (change_type == LCL_ChangeUnknownStep) {
|
||||||
last_ref_update = 0.0;
|
last_ref_update = 0.0;
|
||||||
|
REF_SetUnsynchronised();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* When the clock was stepped, check if that doesn't change our leap status
|
/* When the clock was stepped, check if that doesn't change our leap status
|
||||||
|
|
|
@ -1128,7 +1128,7 @@ slew_sources(struct timespec *raw, struct timespec *cooked, double dfreq,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (change_type == LCL_ChangeUnknownStep) {
|
if (change_type == LCL_ChangeUnknownStep) {
|
||||||
/* After resetting no source is selectable, set reference unsynchronised */
|
/* Update selection status */
|
||||||
SRC_SelectSource(NULL);
|
SRC_SelectSource(NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue