thiagoralves / OpenPLC_v3

OpenPLC Runtime version 3
1.06k stars 432 forks source link

Long long sleep: Fix for task period above 1 second #181

Closed lhartmann closed 1 year ago

lhartmann commented 1 year ago

This fixes struct timespec update code to allow low rate tasks. Previous code assumes common_ticktime_ was at most 1,000,000,000.

While this may be unusual, it is allowed on beremiz gui and fails on the runtime.