chilipeppr / serial-port-json-server

Serial Port JSON Server is a websocket server for your serial devices. It compiles to a binary 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
321 stars 101 forks source link

Fix issue #27, failed open prevents other open attempts from succeeding #32

Open DanielJoyce opened 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.