ftdi_readstream: fix timeout setting
authorMatthias Klein <matthias@extraklein.de>
Fri, 18 Nov 2022 08:59:40 +0000 (09:59 +0100)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Tue, 29 Aug 2023 15:13:55 +0000 (17:13 +0200)
commit9c0949fff4d2e6dfdf6701fc481b46a337a051d8
tree88cb1ebfff48a9a848ae3e2b8bd19b6dcdaca7cc
parent4de44fefc63f112f5c804c191da101cd8252978f
ftdi_readstream: fix timeout setting

Divide the whole seconds into tv_sec, and the remaining microseconds into tv_usec.

Signed-off-by: Matthias Klein <matthias@extraklein.de>
src/ftdi_stream.c