Skip to content

Commit 73612ac

Browse files
committed
Fix availability of MP_ERROR_TEXT in misc.h
1 parent aceb573 commit 73612ac

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

py/misc.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,9 @@ typedef const char *mp_rom_error_text_t;
341341
// Might add more types of compressed text in the future.
342342
// For now, forward directly to MP_COMPRESSED_ROM_TEXT.
343343
// CIRCUITPY: MP_ERROR_TEXT() -> translate()
344-
#if !CIRCUITPY
344+
#if CIRCUITPY
345+
#include "supervisor/shared/translate/translate.h"
346+
#else
345347
#define MP_ERROR_TEXT(x) (mp_rom_error_text_t)MP_COMPRESSED_ROM_TEXT(x)
346348
#endif
347349

0 commit comments

Comments
 (0)