diff options
| author | Tero Kontkanen <tero.kontkanen@granitedevices.fi> | 2016-10-28 15:18:37 +0300 |
|---|---|---|
| committer | Tero Kontkanen <tero.kontkanen@granitedevices.fi> | 2016-10-28 15:18:37 +0300 |
| commit | f629f3a69e092a9299fd0d70dddd2efa6bbee2e7 (patch) | |
| tree | 0392c5a173b9f5e32115b764ceafcb559d2d2ef3 /busdevice.c | |
| parent | 0490facebd118837d821d8d382dafc16cba475dc (diff) | |
| parent | fa9c9212d7e25e9eacbbfcc4e6a516b4d48ebbb5 (diff) | |
| download | SimpleMotionV2-f629f3a69e092a9299fd0d70dddd2efa6bbee2e7.tar.gz SimpleMotionV2-f629f3a69e092a9299fd0d70dddd2efa6bbee2e7.zip | |
Merge branch 'develop'
Diffstat (limited to 'busdevice.c')
| -rw-r--r-- | busdevice.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/busdevice.c b/busdevice.c index 9bf82c8..c82e27b 100644 --- a/busdevice.c +++ b/busdevice.c @@ -10,6 +10,8 @@ //how much bytes available in transmit buffer #define TANSMIT_BUFFER_LENGTH 128 +unsigned long SMBusBaudrate=SM_BAUDRATE; //the next opened port (with smOpenBus) will be opened with the PBS defined here (default 460800 BPS) + typedef struct _SMBusDevice { //common @@ -65,7 +67,7 @@ smbusdevicehandle smBDOpen( const char *devicename ) if(strncmp(devicename,"COM",3) == 0 || strncmp(devicename,"/dev/tty",8) == 0) //use rs232 lib { - BusDevice[handle].comPort=OpenComport( devicename, SM_BAUDRATE ); + BusDevice[handle].comPort=OpenComport( devicename, SMBusBaudrate ); if( BusDevice[handle].comPort == -1 ) { return -1; //failed to open |
