summaryrefslogtreecommitdiffstats
path: root/binding/radio-binding.c
diff options
context:
space:
mode:
Diffstat (limited to 'binding/radio-binding.c')
-rw-r--r--binding/radio-binding.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/binding/radio-binding.c b/binding/radio-binding.c
index 81de631..6df4b6d 100644
--- a/binding/radio-binding.c
+++ b/binding/radio-binding.c
@@ -29,6 +29,7 @@
#include "radio_impl.h"
#include "radio_impl_rtlsdr.h"
#include "radio_impl_kingfisher.h"
+#include "radio_impl_tef665x.h"
static radio_impl_ops_t *radio_impl_ops;
@@ -561,6 +562,10 @@ static int init(afb_api_t api)
radio_impl_ops = &kf_impl_ops;
rc = radio_impl_ops->init();
}
+ if(rc != 0) {
+ radio_impl_ops = &tef665x_impl_ops;
+ rc = radio_impl_ops->init();
+ }
if (rc != 0) {
AFB_API_ERROR(afbBindingV3root, "No radio device found, exiting");
}