|
|
|
|
@ -1595,12 +1595,12 @@ void yon_adapter_window_setup(widgets_dict *widgets){
|
|
|
|
|
vendor = json_object_get_string(unit_obj);
|
|
|
|
|
}
|
|
|
|
|
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))
|
|
|
|
|
driver_use = json_object_get_string(unit_obj);
|
|
|
|
|
}
|
|
|
|
|
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))
|
|
|
|
|
driver_all = json_object_get_string(unit_obj);
|
|
|
|
|
}
|
|
|
|
|
|