diff --git a/inc/compat/MicroBitSerial.h b/inc/compat/MicroBitSerial.h index d16a233c..262a2079 100644 --- a/inc/compat/MicroBitSerial.h +++ b/inc/compat/MicroBitSerial.h @@ -109,7 +109,7 @@ class MicroBitSerial : public NRF52Serial * * @param rx the new reception pin. * - * @return CODAL_SERIAL_IN_USE if another fiber is currently transmitting or receiving, otherwise DEVICE_OK. + * @return DEVICE_SERIAL_IN_USE if another fiber is currently transmitting or receiving, otherwise DEVICE_OK. */ int redirect(PinName tx, PinName rx); @@ -121,7 +121,7 @@ class MicroBitSerial : public NRF52Serial * * @param rx the new reception pin. * - * @return CODAL_SERIAL_IN_USE if another fiber is currently transmitting or receiving, otherwise DEVICE_OK. + * @return DEVICE_SERIAL_IN_USE if another fiber is currently transmitting or receiving, otherwise DEVICE_OK. */ int redirect(PinNumber tx, PinNumber rx); diff --git a/source/compat/MicroBitSerial.cpp b/source/compat/MicroBitSerial.cpp index f4cf8e18..41f2194f 100644 --- a/source/compat/MicroBitSerial.cpp +++ b/source/compat/MicroBitSerial.cpp @@ -109,7 +109,7 @@ MicroBitSerial::MicroBitSerial(PinNumber tx, PinNumber rx, uint8_t rxBufferSize, * * @param rx the new reception pin. * - * @return CODAL_SERIAL_IN_USE if another fiber is currently transmitting or receiving, otherwise DEVICE_OK. + * @return DEVICE_SERIAL_IN_USE if another fiber is currently transmitting or receiving, otherwise DEVICE_OK. */ int MicroBitSerial::redirect(PinName tx, PinName rx) { static Pin *oldRx = NULL; @@ -134,7 +134,7 @@ int MicroBitSerial::redirect(PinName tx, PinName rx) { * * @param rx the new reception pin. * - * @return CODAL_SERIAL_IN_USE if another fiber is currently transmitting or receiving, otherwise DEVICE_OK. + * @return DEVICE_SERIAL_IN_USE if another fiber is currently transmitting or receiving, otherwise DEVICE_OK. */ int MicroBitSerial::redirect(PinNumber tx, PinNumber rx) { static Pin *oldRx = NULL;