add initString when string is made known to simulator
This commit is contained in:
parent
8bfce47800
commit
d3ff1a689a
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user