missing async annotation on serial
This commit is contained in:
parent
6e6a98559c
commit
f2bab5d122
@ -10,6 +10,7 @@ namespace serial {
|
||||
//% help=serial/read-line
|
||||
//% blockId=serial_read_line block="serial read line"
|
||||
//% weight=20
|
||||
//% async
|
||||
StringData* readLine() {
|
||||
return uBit.serial.readUntil(ManagedString("\n")).leakData();
|
||||
}
|
||||
@ -20,6 +21,7 @@ namespace serial {
|
||||
//% help=serial/write-string
|
||||
//% weight=87
|
||||
//% blockId=serial_writestring block="serial write string %text"
|
||||
//% async
|
||||
void writeString(StringData *text) {
|
||||
uBit.serial.send(ManagedString(text));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user