callaa / qfirmata

Firmata library for Qt/QML
GNU Lesser General Public License v3.0
16 stars 5 forks source link

Serial Port Permission denied #2

Closed coreanq closed 8 years ago

coreanq commented 8 years ago

I open the serial port following order "com12" -> "com13" -> "com12", Error message pops up. because the serial port is already open. so I think whenever SerialFirmata::setDevice invocked, it need to close the port previously opened.

callaa commented 8 years ago

Looks like I had used the wrong smart pointer class which lead to a resource leak. This is now fixed.