mirror of https://github.com/a2stuff/vnIIc.git
Add missing subscripts. Fixes #1
This commit is contained in:
parent
cb0b8373a5
commit
998045c4db
|
@ -385,8 +385,8 @@ async function startStreaming() {
|
|||
|
||||
|
||||
while (true) {
|
||||
const command = await port.read(1);
|
||||
const size = await port.read(1);
|
||||
const command = await port.read(1)[0];
|
||||
const size = await port.read(1)[0];
|
||||
const data = size ? await port.read(size) : [];
|
||||
|
||||
switch (command) {
|
||||
|
|
Loading…
Reference in New Issue