]> sigrok.org Git - libsigrok.git/commit
korad-kaxxxxp: tweak first "give time to process" invocation
authorGerhard Sittig <redacted>
Sat, 25 Feb 2023 15:29:28 +0000 (16:29 +0100)
committerGerhard Sittig <redacted>
Sun, 26 Feb 2023 06:45:11 +0000 (07:45 +0100)
commit587ee11535e1c668cafbc72fc68278e0b31fbe76
tree278368dc4ba97388b5b81937900936f72432a782
parentc179e476dff3d29c33b7b1e5d1c2e071f88ecd83
korad-kaxxxxp: tweak first "give time to process" invocation

The give_device_time_to_process() routine unconditionally calculated
with a "time since last command transmission" value which may not have
been assigned to in the first invocation of a getter or setter.

Just don't sleep at all when nothing was sent before. Avoids a
dependency on implementation details of signed integer math.
src/hardware/korad-kaxxxxp/protocol.c