build fix

This commit is contained in:
Eugene Pankov 2021-03-13 22:09:05 +01:00
parent c4204167cd
commit 3676b90c9f
No known key found for this signature in database
GPG key ID: 5896FCBBDD1CF4F4

View file

@ -31,7 +31,7 @@ export class SerialService {
async connectSession (session: SerialSession): Promise<SerialPort> {
const serial = new SerialPort(session.connection.port, {
autoOpen: false,
baudRate: parseInt(session.connection.baudrate),
baudRate: parseInt(session.connection.baudrate as any),
dataBits: session.connection.databits,
stopBits: session.connection.stopbits,
parity: session.connection.parity,