[Armadeus-commitlog] armadeus branch, master, updated. release-3.4-214-ga9783d2
Brought to you by:
sszy
|
From: Fabien M <fa...@us...> - 2011-06-22 06:53:08
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus".
The branch, master has been updated
via a9783d21479a11e4974b97ff59e8179255c73572 (commit)
from a76ade6bbebb7171c5646c385f1c933cb9bb050c (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit a9783d21479a11e4974b97ff59e8179255c73572
Author: Fabien Marteau <fab...@ar...>
Date: Wed Jun 22 08:52:15 2011 +0200
[buildroot][package][straton_ios] Fixing somes bugs
-----------------------------------------------------------------------
Summary of changes:
target/packages/straton_ios/straton_ios.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/target/packages/straton_ios/straton_ios.c b/target/packages/straton_ios/straton_ios.c
index 1373a91..3a2196f 100755
--- a/target/packages/straton_ios/straton_ios.c
+++ b/target/packages/straton_ios/straton_ios.c
@@ -6,11 +6,9 @@
static struct as_gpio_device *led;
static struct as_gpio_device *button;
-
-
/* set and get specifics functions */
void led_setvalue(long value) {
- if (value = 0)
+ if (value == 0)
as_gpio_set_pin_value(led, 1);
else
as_gpio_set_pin_value(led, 0);
@@ -18,7 +16,7 @@ void led_setvalue(long value) {
}
long button_getvalue(void){
- return (long)as_gpio_get_pin_value(button);
+ return (long)!as_gpio_get_pin_value(button);
}
/* straton api */
@@ -37,8 +35,8 @@ int straton_ios_init(void) {
printf("IO error: Can't initialize led\n");
goto close_button_error;
}
- return 0;
as_gpio_set_pin_direction(led, "out");
+ return 0;
/*close_led_error:*/
as_gpio_close(led);
hooks/post-receive
--
armadeus
|