Skip to content

Commit

Permalink
Merge pull request adafruit#8531 from tannewt/fix_warnings
Browse files Browse the repository at this point in the history
Switch warnings to mp_rom_error_text_t
  • Loading branch information
tannewt authored Oct 27, 2023
2 parents 32b6ac7 + 523d95e commit a501a21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shared-module/warnings/__init__.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion shared-module/warnings/__init__.h
Original file line number Diff line number Diff line change
Expand Up @@ -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, ...);

0 comments on commit a501a21

Please sign in to comment.