From b7f2ddf73b03d94533173e7ab2e8c8acd7a0f147 Mon Sep 17 00:00:00 2001 From: Tero Kontkanen Date: Thu, 4 Feb 2016 00:41:50 +0200 Subject: Fix minor bug: incorrect SM_STATUS returned in smCloseBus. No other effects. --- simplemotion.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) -- cgit v1.2.3