mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-25 20:26:41 +00:00
Code cleanup
This commit is contained in:
parent
432b9ecf1b
commit
2573845cab
@ -1973,7 +1973,7 @@ void hasp_process_obj_attribute(lv_obj_t* obj, const char* attribute, const char
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default: {
|
default: {
|
||||||
break; // not found
|
ret = hasp_local_style_attr(obj, attribute, attr_hash, payload, update, val);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2013,17 +2013,6 @@ void hasp_process_obj_attribute(lv_obj_t* obj, const char* attribute, const char
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(ret == HASP_ATTR_TYPE_NOT_FOUND) {
|
|
||||||
// bool result;
|
|
||||||
ret = hasp_local_style_attr(obj, attribute, attr_hash, payload, update, val);
|
|
||||||
// if(result) {
|
|
||||||
// ret = HASP_ATTR_TYPE_METHOD_OK;
|
|
||||||
// } else {
|
|
||||||
// ret = HASP_ATTR_TYPE_NOT_FOUND;
|
|
||||||
// }
|
|
||||||
// LOG_VERBOSE(TAG_ATTR, "%s %d ret:%d", __FILE__, __LINE__, ret);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Positive return codes have returned a value, negative are warnings
|
// Positive return codes have returned a value, negative are warnings
|
||||||
if(update && ret > 0) return; // done
|
if(update && ret > 0) return; // done
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user