mark serial messages as simulated

This commit is contained in:
Peli de Halleux 2016-07-29 13:42:21 -07:00
parent 7e79635413
commit 3f83cda087
2 changed files with 5 additions and 4 deletions

View File

@ -612,9 +612,9 @@ svg.sim.grayscale {
private attachEvents() {
Runtime.messagePosted = (msg) => {
switch (msg.type || '') {
case 'serial': this.flashSystemLed(); break;
case 'radiopacket': this.flashAntenna(); break;
switch (msg.type || "") {
case "serial": this.flashSystemLed(); break;
case "radiopacket": this.flashAntenna(); break;
}
}
let tiltDecayer = 0;

View File

@ -600,7 +600,8 @@ namespace pxsim {
Runtime.postMessage(<SimulatorSerialMessage>{
type: "serial",
data: this.serialOutBuffer,
id: runtime.id
id: runtime.id,
sim: true
})
this.serialOutBuffer = ""
break;