i2c: fixed i2c_stop_replace function never being called
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
committed by
Brendan Le Foll
parent
da3efdc4b9
commit
0021b1aace
@@ -437,6 +437,10 @@ mraa_i2c_stop(mraa_i2c_context dev)
|
||||
return MRAA_ERROR_INVALID_HANDLE;
|
||||
}
|
||||
|
||||
if (IS_FUNC_DEFINED(dev, i2c_stop_replace)) {
|
||||
return dev->advance_func->i2c_stop_replace(dev);
|
||||
}
|
||||
|
||||
free(dev);
|
||||
return MRAA_SUCCESS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user