aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOskari Timperi <oskari.timperi@optofidelity.com>2017-04-11 10:50:08 +0300
committerOskari Timperi <oskari.timperi@optofidelity.com>2017-04-11 10:50:08 +0300
commit2760f444b7c1cec95753778ff16b33782421f483 (patch)
tree94aa6018562ceaba0508466f12a9e12b387977ff
parent6996814437efb94368aac8db4d5344d59ccb7b7e (diff)
downloadSimpleMotionV2-feature/osx-support.tar.gz
SimpleMotionV2-feature/osx-support.zip
Turn a lonely bool variable into an int variablefeature/osx-support
-rw-r--r--pcserialport.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pcserialport.c b/pcserialport.c
index d9cd0f8..35a7668 100644
--- a/pcserialport.c
+++ b/pcserialport.c
@@ -39,7 +39,7 @@ smint32 serialPortOpen(const char * port_device_name, smint32 baudrate_bps)
int err;
int baudrateEnumValue;
struct termios new_port_settings;
- bool customBaudRate = false;
+ int customBaudRate = 0;
port_handle = open(port_device_name, O_RDWR | O_NOCTTY);
@@ -106,7 +106,7 @@ smint32 serialPortOpen(const char * port_device_name, smint32 baudrate_bps)
case 4000000 : baudrateEnumValue = B4000000; break;
#endif
default:
- customBaudRate = true;
+ customBaudRate = 1;
#if defined(__APPLE__)
if (ioctl(port_handle, IOSSIOSPEED, &baudrate_bps) == -1)
{