Merge branch 'hardware-unavailable' of git://github.com/microbit-sam/microbit-dal into dal-integration
commit
14f4c0e64e
|
@ -84,6 +84,7 @@ enum PanicCode{
|
|||
MICROBIT_NULL_DEREFERENCE = 40,
|
||||
|
||||
// A requested hardware peripheral could not be found,
|
||||
MICROBIT_HARDWARE_UNAVAILABLE = 50,
|
||||
MICROBIT_HARDWARE_UNAVAILABLE_ACC = 50,
|
||||
MICROBIT_HARDWARE_UNAVAILABLE_MAG = 51,
|
||||
};
|
||||
#endif
|
||||
|
|
|
@ -112,7 +112,7 @@ MicroBitAccelerometer& MicroBitAccelerometer::autoDetect(MicroBitI2C &i2c)
|
|||
|
||||
else
|
||||
{
|
||||
microbit_panic(MICROBIT_HARDWARE_UNAVAILABLE);
|
||||
microbit_panic(MICROBIT_HARDWARE_UNAVAILABLE_ACC);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -134,7 +134,7 @@ MicroBitCompass& MicroBitCompass::autoDetect(MicroBitI2C &i2c)
|
|||
|
||||
else
|
||||
{
|
||||
microbit_panic(MICROBIT_HARDWARE_UNAVAILABLE);
|
||||
microbit_panic(MICROBIT_HARDWARE_UNAVAILABLE_MAG);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue