Nuand / bladeRF

bladeRF USB 3.0 Superspeed Software Defined Radio Source Code
http://nuand.com
Other
1.14k stars 460 forks source link

libbladeRF: Return errors for invalid enum values #48

Closed jynik closed 11 years ago

jynik commented 11 years ago

In routines like bladerf_enable_module() we need to ensure there's a default case in the switch statement that returns BLADERF_ERR_INVAL. This would help users catch things like uninitialized values being passed to these routines.

jynik commented 11 years ago

It appears that bladerf_enable_module() was the only routine affected here... fixed in 29a4ebb8cadf84226ec56f95c6e30f9e522c68ed.