sr: demodevice: Reset sample limit when setting time limit and vice versa
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 3 Jul 2012 21:59:12 +0000 (23:59 +0200)
committerBert Vermeulen <bert@biot.com>
Tue, 3 Jul 2012 23:11:50 +0000 (01:11 +0200)
commit1a5be0ab72b960ff73494db900f5ffe7d39cb84c
tree9c717f65f9e342d191762f81987550bfc2a20a48
parent87ff6a074e0fb45d7a9a79f2475260707157162b
sr: demodevice: Reset sample limit when setting time limit and vice versa

Only one limit should be active at a time. Make sure that the sample limit is
disabled when a time limit is set and vice versa.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
libsigrok/hardware/demo/demo.c