add initString when string is made known to simulator

This commit is contained in:
Tom Ball 2017-04-17 20:12:34 -07:00
parent 8bfce47800
commit d3ff1a689a

View File

@ -186,7 +186,7 @@ namespace pxsim.radio {
} }
export function receivedString(): string { export function receivedString(): string {
return board().radioState.bus.datagram.lastReceived.payload.stringData || ""; return initString(board().radioState.bus.datagram.lastReceived.payload.stringData || "");
} }
export function receivedTime(): number { export function receivedTime(): number {