From 523d95e192d1745470d888e1d3f971cbf4e2fa81 Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Fri, 27 Oct 2023 09:31:20 -0700 Subject: [PATCH] Switch warnings to mp_rom_error_text_t --- shared-module/warnings/__init__.c | 2 +- shared-module/warnings/__init__.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/shared-module/warnings/__init__.c b/shared-module/warnings/__init__.c index e12958600f..9ee52619a5 100644 --- a/shared-module/warnings/__init__.c +++ b/shared-module/warnings/__init__.c @@ -48,7 +48,7 @@ void common_hal_warnings_warn(const char *message, const mp_obj_type_t *category mp_printf(MICROPY_ERROR_PRINTER, "%q: %s\n", category->name, message); } -void warnings_warn(const mp_obj_type_t *category, const compressed_string_t *message, ...) { +void warnings_warn(const mp_obj_type_t *category, mp_rom_error_text_t message, ...) { warnings_action_t action = MP_STATE_THREAD(warnings_action); if (action == WARNINGS_IGNORE) { return; diff --git a/shared-module/warnings/__init__.h b/shared-module/warnings/__init__.h index 2b9e544079..5d67438ef2 100644 --- a/shared-module/warnings/__init__.h +++ b/shared-module/warnings/__init__.h @@ -26,4 +26,4 @@ #pragma once -void warnings_warn(const mp_obj_type_t *category, const compressed_string_t *message, ...); +void warnings_warn(const mp_obj_type_t *category, mp_rom_error_text_t message, ...);