Merge branch 'fix-serial-hang' of git://github.com/philipphenkel/microbit-dal into dal-integration

This commit is contained in:
Joe Finney 2018-09-05 09:48:29 +01:00
commit 24d27a1ea4

View file

@ -88,12 +88,13 @@ MicroBitSerial::MicroBitSerial(PinName tx, PinName rx, uint8_t rxBufferSize, uin
*/
void MicroBitSerial::dataReceived()
{
//get the received character
//Note: always read from the serial to clear the RX interrupt
char c = getc();
if(!(status & MICROBIT_SERIAL_RX_BUFF_INIT))
return;
//get the received character
char c = getc();
int delimeterOffset = 0;
int delimLength = this->delimeters.length();