Commit 18177c83 authored by Grzegorz Daniluk's avatar Grzegorz Daniluk

shell/cmd_time: second argument is nanoseconds, should not be divided by 8

parent d1075ac1
...@@ -25,7 +25,7 @@ int cmd_time(const char *args[]) ...@@ -25,7 +25,7 @@ int cmd_time(const char *args[])
if(args[2] && !strcasecmp(args[0], "set")) { if(args[2] && !strcasecmp(args[0], "set")) {
if(wrc_ptp_get_mode() != WRC_MODE_SLAVE) if(wrc_ptp_get_mode() != WRC_MODE_SLAVE)
{ {
pps_gen_set_time((uint64_t)atoi(args[1]), atoi(args[2]) / 8); pps_gen_set_time((uint64_t)atoi(args[1]), atoi(args[2]));
return 0; return 0;
} else } else
return -EBUSY; return -EBUSY;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment