--- thermometer/main.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/thermometer/main.c b/thermometer/main.c index 33649a7..df3f1ff 100644 --- a/thermometer/main.c +++ b/thermometer/main.c @@ -30,14 +30,19 @@ #include <glib.h> #include <errno.h> #include <gdbus.h> +#include <stdint.h> #include "plugin.h" +#include "hcid.h" #include "manager.h" static DBusConnection *connection = NULL; static int thermometer_init(void) { + if (!main_opts.le) + return -EINVAL; + connection = dbus_bus_get(DBUS_BUS_SYSTEM, NULL); if (connection == NULL) return -EIO; -- 1.7.6 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html