Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
c65a1de3ba | ||
|
6135628b1c | ||
|
7ee0227489 |
@@ -18,7 +18,7 @@ include (GetGitRevisionDescription)
|
||||
git_describe (VERSION "--tags")
|
||||
if ("x_${VERSION}" STREQUAL "x_GIT-NOTFOUND")
|
||||
message (WARNING " - Install git to compile a production libmraa!")
|
||||
set (VERSION "v0.5.4-dirty")
|
||||
set (VERSION "v0.6.0-dirty")
|
||||
endif ()
|
||||
|
||||
message (INFO " - libmraa Version ${VERSION}")
|
||||
|
@@ -66,6 +66,13 @@ This changelog is meant as a quick & rough guide to what has changed between
|
||||
versions. The API is now fairly stable but when new calls/features are added
|
||||
they are listed here. Anything pre 0.2.x is ignored.
|
||||
|
||||
**0.6.0**
|
||||
* add device path queries for uart
|
||||
* add platform configuration querying
|
||||
* gpio sample added
|
||||
* improve i2c/spi write/read API for python & nodejs
|
||||
* performance improvements on edison & galileo
|
||||
|
||||
**0.5.4**
|
||||
* pwm read_* fix introduced in 0.5.3
|
||||
* improved npmpkg support
|
||||
|
17
src/mraa.c
17
src/mraa.c
@@ -154,17 +154,14 @@ mraa_setup_mux_mapped(mraa_pin_t meta)
|
||||
if (mux_i == NULL) {
|
||||
return MRAA_ERROR_INVALID_HANDLE;
|
||||
}
|
||||
// this function will sometimes fail, however this is not critical as
|
||||
// long as the write succeeds - Test case galileo gen2 pin2
|
||||
mraa_gpio_dir(mux_i, MRAA_GPIO_OUT);
|
||||
mraa_gpio_owner(mux_i, 0);
|
||||
|
||||
if (meta.mux[mi].value) {
|
||||
if (mraa_gpio_dir(mux_i, MRAA_GPIO_OUT_HIGH) != MRAA_SUCCESS) {
|
||||
mraa_gpio_close(mux_i);
|
||||
return MRAA_ERROR_INVALID_RESOURCE;
|
||||
}
|
||||
} else {
|
||||
if (mraa_gpio_dir(mux_i, MRAA_GPIO_OUT_LOW) != MRAA_SUCCESS) {
|
||||
mraa_gpio_close(mux_i);
|
||||
return MRAA_ERROR_INVALID_RESOURCE;
|
||||
}
|
||||
if (mraa_gpio_write(mux_i, meta.mux[mi].value) != MRAA_SUCCESS) {
|
||||
mraa_gpio_close(mux_i);
|
||||
return MRAA_ERROR_INVALID_RESOURCE;
|
||||
}
|
||||
mraa_gpio_close(mux_i);
|
||||
}
|
||||
|
Reference in New Issue
Block a user