(byte: number)
| 69 | } |
| 70 | |
| 71 | private rxWriteByte(byte: number): boolean { |
| 72 | if (this.rxCount < this.rxBuffer.length) { |
| 73 | this.rxBuffer.writeUInt8(byte, this.rxCount); |
| 74 | this.rxCount++; |
| 75 | } |
| 76 | return this.rxCount === this.rxTargetLength; |
| 77 | } |
| 78 | |
| 79 | private getRxPacket(): Packet { |
| 80 | return { |