diff --git a/libs/microbit-radio/radio.cpp b/libs/microbit-radio/radio.cpp index 70acd32a..6e1f1d73 100644 --- a/libs/microbit-radio/radio.cpp +++ b/libs/microbit-radio/radio.cpp @@ -56,7 +56,7 @@ namespace radio { * @param the numberic value */ //% help=radio/stream-value - //% weight=15 + //% weight=4 //% blockId=radio_datagram_stream_value block="stream|value %name|= %value" void streamValue(StringData* name, int number) { if (radioEnable() != MICROBIT_OK) return; @@ -78,7 +78,7 @@ namespace radio { * to the serial stream as JSON */ //% help=radio/read-value-to-serial - //% weight=14 + //% weight=3 void readValueToSerial() { if (radioEnable() != MICROBIT_OK) return; PacketBuffer p = uBit.radio.datagram.recv(); diff --git a/libs/microbit-radio/shims.d.ts b/libs/microbit-radio/shims.d.ts index 8785b53f..fba75297 100644 --- a/libs/microbit-radio/shims.d.ts +++ b/libs/microbit-radio/shims.d.ts @@ -20,7 +20,7 @@ declare namespace radio { * @param the numberic value */ //% help=radio/stream-value - //% weight=15 + //% weight=4 //% blockId=radio_datagram_stream_value block="stream|value %name|= %value" shim=radio::streamValue function streamValue(name: string, number: number): void; @@ -29,7 +29,7 @@ declare namespace radio { * to the serial stream as JSON */ //% help=radio/read-value-to-serial - //% weight=14 shim=radio::readValueToSerial + //% weight=3 shim=radio::readValueToSerial function readValueToSerial(): void; /**