hubo / hubo-ach

Low level controller for the Hubo 2 and Hubo 2+ platforms designed by Daniel M. Lofaro. The system is based on the IPC called ACH by Neil Dantam and Mike Stilman.
Other
5 stars 18 forks source link

Invalid argument to clock_gettime() and clock_nanosleep() #69

Open ndantam opened 11 years ago

ndantam commented 11 years ago

Zero is passed as the clock_id argument to clock_gettime() and clock_nanosleep() in huboLoop(). This does not follow the POSIX spec and if it works, it's by accident.

The correct clock_id here is probably CLOCK_MONOTONIC.

ndantam commented 11 years ago

On GNU/Linux CLOCK_REALTIME happens to be zero.