Private
Public Access
2
0

i2c: mraa_i2c_frequency now returns correct returns

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2014-10-20 10:01:53 +01:00
parent c8a99ee8e4
commit d49f20b7ba
2 changed files with 2 additions and 2 deletions

View File

@@ -69,7 +69,7 @@ mraa_i2c_context mraa_i2c_init(int bus);
mraa_i2c_context mraa_i2c_init_raw(unsigned int bus);
/**
* Sets the frequency of the i2c context
* Sets the frequency of the i2c context. Most platforms do not support this.
*
* @param dev The i2c context
* @param hz The bus frequency in hertz

View File

@@ -81,7 +81,7 @@ mraa_i2c_frequency(mraa_i2c_context dev, int hz)
{
dev->hz = hz;
return MRAA_SUCCESS;
return MRAA_ERROR_FEATURE_NOT_SUPPORTED;
}
int