fixing radio stack (#2461)

* fixing radio stack

* updated shims
This commit is contained in:
Peli de Halleux
2019-10-05 06:24:15 -07:00
committed by GitHub
parent 7433fd8beb
commit 36b8e5d661
4 changed files with 46 additions and 38 deletions

View File

@ -48,7 +48,7 @@ namespace pxsim {
rssi: -1,
serial: 0,
time: 0,
payload: { type: -1, groupId: 0 }
payload: { type: -1, groupId: 0, bufferData: new Uint8Array(0) }
};
}
}
@ -109,11 +109,13 @@ namespace pxsim.radio {
}
export function sendRawPacket(buf: RefBuffer) {
let cb = getResume();
board().radioState.datagram.send({
type: 0,
groupId: board().radioState.groupId,
bufferData: buf.data
});
setTimeout(cb, 1);
}
export function readRawPacket() {