arduino-libraries/ArduinoModbus

Incorrect conversion of seconds and micro seconds to milliseconds

r2park opened this issue · 1 comments

It is correct, since struct timeval is defined as https://renenyffenegger.ch/notes/development/languages/C-C-plus-plus/C/libc/structs/timeval . So if you have tv defined as tv = { .tv_sec = 5; .tv_usec = 34000; } the number of milliseconds will be 5*1000 + 34000/1000