mark serial messages as simulated
This commit is contained in:
		| @@ -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; | ||||
|   | ||||
| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user