mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[python] Use of mp_obj_is_str instead of MP_OBJ_IS_STR for more
consistency
This commit is contained in:
committed by
LeaNumworks
parent
a564efcaa5
commit
995cc04533
@@ -181,7 +181,7 @@ void MicroPython::collectRootsAtAddress(char * address, int byteLength) {
|
||||
}
|
||||
|
||||
KDColor MicroPython::ColorParser::ParseColor(mp_obj_t input, ColorModes ColorMode){
|
||||
if(MP_OBJ_IS_STR(input)){
|
||||
if(mp_obj_is_str(input)){
|
||||
size_t l;
|
||||
const char * color = mp_obj_str_get_data(input, &l);
|
||||
// TODO add cyan
|
||||
|
||||
Reference in New Issue
Block a user