johnlauer / serial-port-json-server

A serial port JSON websocket server for Windows, Mac, Linux, Raspberry Pi, or BeagleBone Black that lets you communicate with your serial port from a web application. This enables web apps to be written that can communicate with your local serial device such as an Arduino, CNC controller, or any device that communicates over the serial port.
http://chilipeppr.com
GNU General Public License v2.0
355 stars 174 forks source link

Fix failed open issues pr #61

Closed DanielJoyce closed 7 years ago

DanielJoyce commented 7 years ago

SPJS forgets to unlock and mutex and reset a flag if it returns due to failing to open a serial port. This PR fixes that code path.