mark serial messages as simulated
This commit is contained in:
parent
7e79635413
commit
3f83cda087
@ -612,9 +612,9 @@ svg.sim.grayscale {
|
|||||||
|
|
||||||
private attachEvents() {
|
private attachEvents() {
|
||||||
Runtime.messagePosted = (msg) => {
|
Runtime.messagePosted = (msg) => {
|
||||||
switch (msg.type || '') {
|
switch (msg.type || "") {
|
||||||
case 'serial': this.flashSystemLed(); break;
|
case "serial": this.flashSystemLed(); break;
|
||||||
case 'radiopacket': this.flashAntenna(); break;
|
case "radiopacket": this.flashAntenna(); break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let tiltDecayer = 0;
|
let tiltDecayer = 0;
|
||||||
|
@ -600,7 +600,8 @@ namespace pxsim {
|
|||||||
Runtime.postMessage(<SimulatorSerialMessage>{
|
Runtime.postMessage(<SimulatorSerialMessage>{
|
||||||
type: "serial",
|
type: "serial",
|
||||||
data: this.serialOutBuffer,
|
data: this.serialOutBuffer,
|
||||||
id: runtime.id
|
id: runtime.id,
|
||||||
|
sim: true
|
||||||
})
|
})
|
||||||
this.serialOutBuffer = ""
|
this.serialOutBuffer = ""
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user