Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
40
Issues
40
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
PPSi
Commits
91945101
Commit
91945101
authored
Feb 06, 2023
by
Adam Wujek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
time-wrs: call /etc/init.d/wr_date instead /wr/bin/wr_date in GM mode
Signed-off-by:
Adam Wujek
<
dev_public@wujek.eu
>
parent
a72498ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
wrs-time.c
time-wrs/wrs-time.c
+5
-4
No files found.
time-wrs/wrs-time.c
View file @
91945101
...
...
@@ -428,10 +428,11 @@ static int wrs_time_get(struct pp_instance *ppi, struct pp_time *t)
static
int
wrs_time_set
(
struct
pp_instance
*
ppi
,
const
struct
pp_time
*
t
)
{
if
(
WRS_ARCH_I
(
ppi
)
->
timingMode
==
WRH_TM_GRAND_MASTER
)
{
// Grand master mode
// We delegate the time setup to the wr_date tool has
// it can take time to adjust the time
system
(
"/wr/bin/wr_date -v set host &"
);
/* Grand master mode
* We delegate the time setup to the wr_date tool as it can take
* time to adjust the time. Let it know that we call it from
* the ppsi */
system
(
"/etc/init.d/wr_date ppsi &"
);
}
else
{
struct
pp_time
diff
,
now
;
int
msec
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment