removing serial event (not supported in DAL)

This commit is contained in:
Peli de Halleux
2016-05-19 13:39:28 -07:00
parent 539357237f
commit 9a36a2fc05
3 changed files with 6 additions and 14 deletions

View File

@ -28,8 +28,8 @@ namespace serial {
* Registers an event to be fired when one of the delimiter is matched
* @param delimiters the characters to match received characters against. eg:"\n"
*/
//% help=serial/on-data-received
//% weight=19
// help=serial/on-data-received
// weight=19
void onDataReceived(StringData* delimiters, Action body) {
uBit.serial.eventOn(ManagedString(delimiters));
registerWithDal(MICROBIT_ID_SERIAL, MICROBIT_SERIAL_EVT_DELIM_MATCH, body);