Add auto toString for various APIs (#1033)

This commit is contained in:
Guillaume Jenkins
2018-08-02 16:30:02 -04:00
committed by GitHub
parent 27024baa51
commit 2700a77cae
6 changed files with 15 additions and 8 deletions

View File

@ -105,7 +105,7 @@ namespace radio {
memcpy(buf + 1, data->data, len);
}
return len + 1;
}
}
Buffer getBufferValue(uint8_t* buf, uint8_t maxLength) {
// First byte is the buffer length
@ -244,6 +244,7 @@ namespace radio {
//% help=radio/send-string
//% weight=58
//% blockId=radio_datagram_send_string block="radio send string %msg"
//% msg.shadowOptions.toString=true
void sendString(String msg) {
if (radioEnable() != MICROBIT_OK || NULL == msg) return;