]> sigrok.org Git - libsigrok.git/commit
scpi: Query current time just once, use microseconds for timeout
authorStefan Brüns <redacted>
Thu, 12 Jan 2017 00:20:17 +0000 (01:20 +0100)
committerUwe Hermann <redacted>
Sat, 21 Jan 2017 14:08:21 +0000 (15:08 +0100)
commit37ef582d088190ffcf5f8a649ca622cfc52f289a
tree8fa383ed5468645b7bed1146cd2711fc6521fa4e
parent59b9c3290aef7dfdc58afd0a4db8b347e0878c91
scpi: Query current time just once, use microseconds for timeout

g_get_monotonic_time() returns current time in microseconds, use the same
granularity for storing the read timeout.
There is also no need to check the timeout if data has just been read.
src/scpi.h
src/scpi/scpi.c