diff options
| author | Tero K <terok@Teros-MacBook-Pro.local> | 2017-07-13 13:55:30 +0300 |
|---|---|---|
| committer | Tero K <terok@Teros-MacBook-Pro.local> | 2017-07-13 13:55:30 +0300 |
| commit | b823ff46185754bb3bce71a0f7682482171f6a92 (patch) | |
| tree | 1e412b605b2944ff33051dbe6523305f895e22f8 | |
| parent | c008e7a262a111e93a24816fd487dbc3c9507fb4 (diff) | |
| download | SimpleMotionV2-b823ff46185754bb3bce71a0f7682482171f6a92.tar.gz SimpleMotionV2-b823ff46185754bb3bce71a0f7682482171f6a92.zip | |
Support for macOS virtual COM port device naming
| -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 ) |
