Skip to content

Commit 0ea2dd3

Browse files
committed
Another small message refactor
1 parent 94f35b9 commit 0ea2dd3

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

locale/circuitpython.pot

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1868,12 +1868,8 @@ msgstr ""
18681868
msgid "SDIO GetCardInfo Error %d"
18691869
msgstr ""
18701870

1871-
#: ports/stm/common-hal/sdioio/SDCard.c
1872-
#, c-format
1873-
msgid "SDIO Init Error %d"
1874-
msgstr ""
1875-
18761871
#: ports/espressif/common-hal/sdioio/SDCard.c
1872+
#: ports/stm/common-hal/sdioio/SDCard.c
18771873
#, c-format
18781874
msgid "SDIO Init Error %x"
18791875
msgstr ""

ports/stm/common-hal/sdioio/SDCard.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ void common_hal_sdioio_sdcard_construct(sdioio_sdcard_obj_t *self,
140140

141141
HAL_StatusTypeDef r = HAL_SD_Init(&self->handle);
142142
if (r != HAL_OK) {
143-
mp_raise_ValueError_varg(MP_ERROR_TEXT("SDIO Init Error %d"), (int)r);
143+
mp_raise_ValueError_varg(MP_ERROR_TEXT("SDIO Init Error %x"), (unsigned int)r);
144144
}
145145

146146
HAL_SD_CardInfoTypeDef info;

0 commit comments

Comments
 (0)