From 995cc0453362fb13bf312399bc552b1d3a9992f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Tue, 28 Apr 2020 17:01:03 +0200 Subject: [PATCH] [python] Use of mp_obj_is_str instead of MP_OBJ_IS_STR for more consistency --- python/port/port.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/port/port.cpp b/python/port/port.cpp index 7b25d57bc..5edc4dece 100644 --- a/python/port/port.cpp +++ b/python/port/port.cpp @@ -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