handle negative lenght in readBuffer

This commit is contained in:
Peli de Halleux 2018-09-27 08:43:01 -07:00
parent a61676d10e
commit 6239dd6aba

View File

@ -59,6 +59,8 @@ namespace pxsim.serial {
}
export function readBuffer(length: number) {
if (length <= 0)
length = 64;
return pins.createBuffer(length);
}
}