From 470789058fb97773c1004bb3a840528138a704fd Mon Sep 17 00:00:00 2001 From: Ivan Belokobylskiy Date: Thu, 25 Jun 2020 10:18:04 +0300 Subject: [PATCH] Allow compiling against MP <= 1.12 --- st7789/st7789.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/st7789/st7789.c b/st7789/st7789.c index 261a2ec..10e451c 100644 --- a/st7789/st7789.c +++ b/st7789/st7789.c @@ -32,6 +32,11 @@ #include "st7789.h" +// allow compiling against MP <=1.12 +#ifndef MP_ERROR_TEXT +#define MP_ERROR_TEXT(a) a +#endif + #define _swap_int16_t(a, b) { int16_t t = a; a = b; b = t; } #define ABS(N) (((N)<0)?(-(N)):(N)) #define mp_hal_delay_ms(delay) (mp_hal_delay_us(delay * 1000))