diff options
Diffstat (limited to 'simplemotion.c')
| -rw-r--r-- | simplemotion.c | 2 |
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;
|
