diff options
| -rw-r--r-- | busdevice.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/busdevice.c b/busdevice.c index 3e0dc12..4bc0ee0 100644 --- a/busdevice.c +++ b/busdevice.c @@ -183,7 +183,7 @@ smbusdevicehandle smBDOpen( const char *devicename ) //all handles in use if(handle>=SM_MAX_BUSES) return -1; - if(strncmp(devicename,"COM",3) == 0 || strncmp(devicename,"/dev/tty",8) == 0) //use rs232 lib + if(strncmp(devicename,"COM",3) == 0 || strncmp(devicename,"/dev/tty",8) == 0 || strncmp(devicename,"/dev/cu.",8) == 0) //use rs232 lib { BusDevice[handle].comPort=serialPortOpen( devicename, SMBusBaudrate ); if( BusDevice[handle].comPort == -1 ) |
