OpenHantek / openhantek

OpenHantek is a DSO software for Hantek (Voltcraft/Darkwire/Protek/Acetech) USB digital signal oscilloscopes
http://openhantek.org/
GNU General Public License v3.0
763 stars 199 forks source link

Fix the [no] downsampler border case for DSO 2250. #247

Closed uunicorn closed 6 years ago

uunicorn commented 6 years ago

downsampler == 1 means divide by one => no downsampling, use the base clocks.

On 2250, frequency divider is a 16-bit up-counter. It outputs a pulse on overflow when enabled and reloads the value which was passed in the ESETTRIGGERORSAMPLERATE command.

If you enable downsampler with ESETTRIGGERORSAMPLERATE and:

Fixes #81

davidgraeff commented 6 years ago

Thanks :)