Test fix for drivers getting

pull/55/head
parent 466195ac6a
commit 84a2fd823a

@ -1595,12 +1595,12 @@ void yon_adapter_window_setup(widgets_dict *widgets){
vendor = json_object_get_string(unit_obj); vendor = json_object_get_string(unit_obj);
} }
const char *driver_use=""; const char *driver_use="";
if (json_object_object_get_ex(item_obj, "capabilities", &unit_obj)) { if (json_object_object_get_ex(item_obj, "configuration", &unit_obj)) {
if (json_object_object_get_ex(unit_obj, "driver", &unit_obj)) if (json_object_object_get_ex(unit_obj, "driver", &unit_obj))
driver_use = json_object_get_string(unit_obj); driver_use = json_object_get_string(unit_obj);
} }
const char *driver_all=""; const char *driver_all="";
if (json_object_object_get_ex(item_obj, "capabilities", &unit_obj)) { if (json_object_object_get_ex(item_obj, "configuration", &unit_obj)) {
if (json_object_object_get_ex(unit_obj, "driver", &unit_obj)) if (json_object_object_get_ex(unit_obj, "driver", &unit_obj))
driver_all = json_object_get_string(unit_obj); driver_all = json_object_get_string(unit_obj);
} }

Loading…
Cancel
Save