aboutsummaryrefslogtreecommitdiff
path: root/simplemotion.c
diff options
context:
space:
mode:
authorTero Kontkanen <tero.k@granitedevices.com>2017-08-19 20:02:59 +0300
committerTero Kontkanen <tero.k@granitedevices.com>2017-08-19 20:05:40 +0300
commit2dfdc771b531716f2547c38864a1ea3ab549808c (patch)
tree7dce32a7ddcb24c6a15cc01061fa483c5d4e95d4 /simplemotion.c
parent98fc91e77907285c0c2f9d8f6209d2df004835e1 (diff)
downloadSimpleMotionV2-2dfdc771b531716f2547c38864a1ea3ab549808c.tar.gz
SimpleMotionV2-2dfdc771b531716f2547c38864a1ea3ab549808c.zip
Completed FTDI support on macOS & Added FTDI binary libraries
Diffstat (limited to 'simplemotion.c')
-rw-r--r--simplemotion.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/simplemotion.c b/simplemotion.c
index 45c7697..1211d63 100644
--- a/simplemotion.c
+++ b/simplemotion.c
@@ -151,7 +151,7 @@ smuint8 calcCRC8Buf( smuint8 *buf, int len, int crcinit )
SM_STATUS smSetTimeout( smuint16 millsecs )
{
- if(millsecs<=5000)
+ if(millsecs<=5000 && millsecs>=1)
{
readTimeoutMs=millsecs;
return SM_OK;