Merge branch 'fix-serial-hang' of git://github.com/philipphenkel/microbit-dal into dal-integration
This commit is contained in:
commit
24d27a1ea4
1 changed files with 4 additions and 3 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue