From 73612ac11992c77a7e2a87dc1bec4f55d19d78fe Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Wed, 20 Sep 2023 11:20:56 -0500 Subject: [PATCH] Fix availability of MP_ERROR_TEXT in misc.h --- py/misc.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/py/misc.h b/py/misc.h index 863ee371a0..78cddc394a 100644 --- a/py/misc.h +++ b/py/misc.h @@ -341,7 +341,9 @@ typedef const char *mp_rom_error_text_t; // Might add more types of compressed text in the future. // For now, forward directly to MP_COMPRESSED_ROM_TEXT. // CIRCUITPY: MP_ERROR_TEXT() -> translate() -#if !CIRCUITPY +#if CIRCUITPY +#include "supervisor/shared/translate/translate.h" +#else #define MP_ERROR_TEXT(x) (mp_rom_error_text_t)MP_COMPRESSED_ROM_TEXT(x) #endif