cosmic-pi-deprecated / cosmicpi-daq

Data acquisition package for reading data from an Arduino via USB serial on a Raspberry Pi
6 stars 3 forks source link

Keep track of open state rather than relying on existence of usb.is_open #23

Closed jlsalmon closed 8 years ago

jlsalmon commented 8 years ago

The serial library used by my mac had a usb.is_open property. But the library on the Pi is different, it's called usb._isOpen. So we just need to keep track of the open state manually for it to work everywhere.

quixoft commented 8 years ago

Well done Justin. Go for it.