happycube / cxadc-linux3

CX2388x direct ADC capture driver, updated for Linux 3.x+ and 64-bit
81 stars 18 forks source link

Some quality of life changes around invalid parameters #55

Open rianhunter opened 6 months ago

rianhunter commented 6 months ago

center_offset doesn't really make sense for negative values or values larger than 63, so we add a hard boundary to them. Also add some warnings on the console if the user passes in an invalid value.