missing shim

This commit is contained in:
Peli de Halleux 2016-05-10 09:28:05 -07:00
parent fcfdbcc7e4
commit 9d1f2e024b

View File

@ -452,6 +452,10 @@ namespace pxsim.radio {
export function sendNumbers(value0: number, value1: number, value2: number, value3: number): void { export function sendNumbers(value0: number, value1: number, value2: number, value3: number): void {
board().radio.datagram.send([value0, value1, value2, value3]); board().radio.datagram.send([value0, value1, value2, value3]);
} }
export function sendValue(name:string, value: number) {
board().radio.datagram.send([value]);
}
export function receiveNumber(): number { export function receiveNumber(): number {
return board().radio.datagram.recv().data[0]; return board().radio.datagram.recv().data[0];