aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTero Kontkanen <tero.kontkanen@granitedevices.fi>2016-02-04 00:41:50 +0200
committerTero Kontkanen <tero.kontkanen@granitedevices.fi>2016-02-04 00:41:50 +0200
commitb7f2ddf73b03d94533173e7ab2e8c8acd7a0f147 (patch)
tree3127b0bb5d2b2c022c4d5e28b7e29d42a2ff19f8
parent5f58d21bbaf5178336904c0c5778fd89f973a586 (diff)
downloadSimpleMotionV2-b7f2ddf73b03d94533173e7ab2e8c8acd7a0f147.tar.gz
SimpleMotionV2-b7f2ddf73b03d94533173e7ab2e8c8acd7a0f147.zip
Fix minor bug: incorrect SM_STATUS returned in smCloseBus. No other effects.
-rw-r--r--simplemotion.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/simplemotion.c b/simplemotion.c
index b94f488..cea0238 100644
--- a/simplemotion.c
+++ b/simplemotion.c
@@ -234,7 +234,7 @@ LIB SM_STATUS smCloseBus( const smbus bushandle )
if( smBDClose(smBus[bushandle].bdHandle) == smfalse ) return recordStatus(bushandle,SM_ERR_BUS);
- return recordStatus(bushandle,SM_OK);
+ return SM_OK;
}
char *cmdidToStr(smuint8 cmdid )