]> sigrok.org Git - libsigrok.git/commit - hardware/asix-sigma/asix-sigma.c
asix-sigma: Init cur_sample_rate
authorMarek Vasut <redacted>
Fri, 25 Apr 2014 16:03:47 +0000 (18:03 +0200)
committerBert Vermeulen <redacted>
Wed, 30 Apr 2014 16:45:52 +0000 (09:45 -0700)
commit23b886bc40eaf14cc44c00cf9dba85404ddc267f
treee7aa5b7be08f45831a3b59d6e2c2c6b5ccaa8eb6
parent1e23158b933e2c7d818d95fbbc45cb21cbff7065
asix-sigma: Init cur_sample_rate

Init the cur_sample_rate to 200kHz. This is now the default sample
rate for the ASIX Sigma if no other is specified by -c samplerate=N
on the command line. Without this change, the driver would crash on
SIGFPE because a division by zero would happen.

Signed-off-by: Marek Vasut <redacted>
hardware/asix-sigma/asix-sigma.c