change error type to runtime

This commit is contained in:
hathach 2018-09-25 17:31:53 +07:00
parent f724647a45
commit 74cc55b107
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@
do {\ do {\
uint32_t _err = (_exp);\ uint32_t _err = (_exp);\
if (NRFX_SUCCESS != _err ) {\ if (NRFX_SUCCESS != _err ) {\
mp_raise_msg_varg(&mp_type_AssertionError, translate("error = 0x%08lX "), _err);\ mp_raise_msg_varg(&mp_type_RuntimeError, translate("error = 0x%08lX "), _err);\
}\ }\
}while(0) }while(0)