We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4dc22df + 5f17c48 commit a6a0812Copy full SHA for a6a0812
uart.js
@@ -507,7 +507,7 @@ To do:
507
DATA : 0x8000, // Sent after FILE_SEND with blocks of data for the file
508
FILE_RECV : 0xA000 // receive a file - returns a series of PT_TYPE_DATA packets, with a final zero length packet to end
509
}
510
- if (!pkType in PKTYPES) throw new Error("'pkType' not one of "+Object.keys(PKTYPES));
+ if (!(pkType in PKTYPES)) throw new Error("'pkType' not one of "+Object.keys(PKTYPES));
511
let connection = this;
512
return new Promise((resolve,reject) => {
513
let timeout;
0 commit comments