Add missing subscripts. Fixes #1

This commit is contained in:
Joshua Bell 2019-03-03 18:50:12 -08:00
parent cb0b8373a5
commit 998045c4db
1 changed files with 2 additions and 2 deletions

View File

@ -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) {