Private
Public Access
2
0

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:
Alex Tereschenko
2016-07-21 20:49:10 +02:00
committed by Brendan Le Foll
parent da3efdc4b9
commit 0021b1aace

View File

@@ -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;
}