[python] Use of mp_obj_is_str instead of MP_OBJ_IS_STR for more

consistency
This commit is contained in:
Émilie Feral
2020-04-28 17:01:03 +02:00
committed by LeaNumworks
parent a564efcaa5
commit 995cc04533

View File

@@ -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