refclock: start refid numbering at zero
Commit d92583ed
inadvertently changed the refclock refid numbering to
start from 1 instead of 0. Restore the original numbering.
This commit is contained in:
parent
fad97e12da
commit
e5cf4645fe
1 changed files with 1 additions and 1 deletions
|
@ -226,7 +226,7 @@ RCL_AddRefclock(RefclockParameters *params)
|
|||
inst->ref_id = params->ref_id;
|
||||
else {
|
||||
unsigned char ref[5] = { 0, 0, 0, 0, 0 };
|
||||
unsigned int index = ARR_GetSize(refclocks);
|
||||
unsigned int index = ARR_GetSize(refclocks) - 1;
|
||||
|
||||
snprintf((char *)ref, sizeof (ref), "%3.3s", params->driver_name);
|
||||
ref[3] = index % 10 + '0';
|
||||
|
|
Loading…
Reference in a new issue