aboutsummaryrefslogtreecommitdiff
path: root/simplemotion.c
diff options
context:
space:
mode:
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 fb53522..b94f488 100644
--- a/simplemotion.c
+++ b/simplemotion.c
@@ -376,7 +376,7 @@ SM_STATUS smFastUpdateCycle( smbus handle, smuint8 nodeAddress, smuint16 write1,
}
//parse
- if( cmd[5]==calcCRC8Buf(cmd,4,0x52) || cmd[0]!=SMCMD_FAST_UPDATE_CYCLE_RET )
+ if( cmd[5]!=calcCRC8Buf(cmd,5,0x52) || cmd[0]!=SMCMD_FAST_UPDATE_CYCLE_RET )
{
return recordStatus(handle,SM_ERR_COMMUNICATION);//packet error
}