diff options
Diffstat (limited to 'simplemotion.c')
| -rw-r--r-- | simplemotion.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/simplemotion.c b/simplemotion.c index 78059ab..4ef9b00 100644 --- a/simplemotion.c +++ b/simplemotion.c @@ -308,7 +308,6 @@ smbool smTransmitBuffer( const smbus handle ) SM_STATUS smSendSMCMD( smbus handle, smuint8 cmdid, smuint8 addr, smuint8 datalen, smuint8 *cmddata )
{
int i;
- smuint8 data;
smuint16 sendcrc;
//check if bus handle is valid & opened
@@ -431,7 +430,6 @@ SM_STATUS smReceiveErrorHandler( smbus handle, smbool flushrx ) SM_STATUS smAppendSMCommandToQueue( smbus handle, int smpCmdType,smint32 paramvalue )
{
- smuint8 txbyte;
int cmdlength;
//check if bus handle is valid & opened
@@ -951,10 +949,12 @@ SM_STATUS getCumulativeStatus( const smbus handle ) }
/** Reset cululative status so getCumultiveStatus returns 0 after calling this until one of the other functions are called*/
-void resetCumulativeStatus( const smbus handle )
+SM_STATUS resetCumulativeStatus( const smbus handle )
{
if(smIsHandleOpen(handle)==smfalse) return SM_ERR_NODEVICE;
smBus[handle].cumulativeSmStatus=0;
+
+ return SM_OK;
}
|
