updated error codes (#1630)
* updated error codes * Add the const names
This commit is contained in:
parent
0433abba59
commit
2afe218af5
@ -10,6 +10,8 @@ Below is a list of error numbers and what they mean:
|
|||||||
* **40** (`MICROBIT_NULL_DEREFERENCE `): there was a NULL dereference, the @boardname@ tried to manage a invalid object pointer.
|
* **40** (`MICROBIT_NULL_DEREFERENCE `): there was a NULL dereference, the @boardname@ tried to manage a invalid object pointer.
|
||||||
* **42** (`MICROBIT_SYSTEM_ERROR`): there's an error condition in the @boardname@ system software.
|
* **42** (`MICROBIT_SYSTEM_ERROR`): there's an error condition in the @boardname@ system software.
|
||||||
* **43** (`MICROBIT_NO_RADIO`): the @boardname@ can't enable the radio.
|
* **43** (`MICROBIT_NO_RADIO`): the @boardname@ can't enable the radio.
|
||||||
|
* **50** (`MICROBIT_HARDWARE_UNAVAILABLE_ACC`): an error occurred with the micro:bit's accelerometer component.
|
||||||
|
* **51** (`MICROBIT_HARDWARE_UNAVAILABLE_MAG`): an error occurred with the micro:bit's magnetometer component.
|
||||||
* **98** (`MICROBIT_ASSERTION_FAILED`): assertion failed, the condition in an [assert](/reference/control/assert) was false.
|
* **98** (`MICROBIT_ASSERTION_FAILED`): assertion failed, the condition in an [assert](/reference/control/assert) was false.
|
||||||
|
|
||||||
```sim
|
```sim
|
||||||
@ -24,4 +26,5 @@ basic.showLeds(`
|
|||||||
|
|
||||||
## See also
|
## See also
|
||||||
|
|
||||||
|
[Support](https://microbit.org/guide/hardware/error-codes/),
|
||||||
[panic](/reference/control/panic), [assert](/reference/control/assert),
|
[panic](/reference/control/panic), [assert](/reference/control/assert),
|
||||||
|
Loading…
Reference in New Issue
Block a user