Changed error message to display the generic term 'system firmware' instead of the Nordic specific term 'soft device'
This commit is contained in:
parent
51c09e877d
commit
1afd204828
@ -47,7 +47,7 @@ void check_nrf_error(uint32_t err_code) {
|
|||||||
}
|
}
|
||||||
switch (err_code) {
|
switch (err_code) {
|
||||||
case NRF_ERROR_NO_MEM:
|
case NRF_ERROR_NO_MEM:
|
||||||
mp_raise_msg(&mp_type_MemoryError, translate("Nordic soft device out of memory"));
|
mp_raise_msg(&mp_type_MemoryError, translate("Nordic system firmware out of memory"));
|
||||||
return;
|
return;
|
||||||
case NRF_ERROR_TIMEOUT:
|
case NRF_ERROR_TIMEOUT:
|
||||||
mp_raise_msg(&mp_type_TimeoutError, NULL);
|
mp_raise_msg(&mp_type_TimeoutError, NULL);
|
||||||
@ -56,7 +56,7 @@ void check_nrf_error(uint32_t err_code) {
|
|||||||
mp_raise_ConnectionError(translate("Not connected"));
|
mp_raise_ConnectionError(translate("Not connected"));
|
||||||
return;
|
return;
|
||||||
default:
|
default:
|
||||||
mp_raise_bleio_BluetoothError(translate("Unknown soft device error: %04x"), err_code);
|
mp_raise_bleio_BluetoothError(translate("Unknown system firmware error: %04x"), err_code);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -182,7 +182,7 @@ void print_safe_mode_message(safe_mode_t reason) {
|
|||||||
// defined in ports/nrf/bluetooth/bluetooth_common.mk
|
// defined in ports/nrf/bluetooth/bluetooth_common.mk
|
||||||
// will print "Unknown reason" if somehow encountered on other ports
|
// will print "Unknown reason" if somehow encountered on other ports
|
||||||
case NORDIC_SOFT_DEVICE_ASSERT:
|
case NORDIC_SOFT_DEVICE_ASSERT:
|
||||||
serial_write_compressed(translate("Nordic Soft Device failure assertion."));
|
serial_write_compressed(translate("Nordic system firmware failure assertion."));
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
case FLASH_WRITE_FAIL:
|
case FLASH_WRITE_FAIL:
|
||||||
|
Loading…
Reference in New Issue
Block a user