From 701e3761e095339185fe7e37439c56f4a9c7bded Mon Sep 17 00:00:00 2001 From: Ben Widawsky Date: Wed, 15 Apr 2020 09:30:59 -0700 Subject: [PATCH] Fix incompatible pointer type errors --- st7789/st7789.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/st7789/st7789.c b/st7789/st7789.c index 72f6b38..b6a2f94 100644 --- a/st7789/st7789.c +++ b/st7789/st7789.c @@ -549,12 +549,12 @@ mp_obj_t st7789_ST7789_make_new(const mp_obj_type_t *type, self->xstart = ST7789_135x240_XSTART; self->ystart = ST7789_135x240_YSTART; } else { - mp_raise_ValueError("Unsupported display. Only 240x240 and 135x240 are supported without xstart and ystart provided"); + mp_raise_ValueError((mp_rom_error_text_t)"Unsupported display. Only 240x240 and 135x240 are supported without xstart and ystart provided"); } if (args[ARG_reset].u_obj == MP_OBJ_NULL || args[ARG_dc].u_obj == MP_OBJ_NULL) { - mp_raise_ValueError("must specify all of reset/dc pins"); + mp_raise_ValueError((mp_rom_error_text_t)"must specify all of reset/dc pins"); } self->reset = mp_hal_get_pin_obj(args[ARG_reset].u_obj);