aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBertrand SIMONNET <bsimonnet@google.com>2016-03-03 12:26:13 -0800
committerBertrand SIMONNET <bsimonnet@google.com>2016-03-03 12:26:13 -0800
commit6196081a689aa9f4457458848c90d2d5362e0ddc (patch)
treebe30baa4f3a5fbfd364638acb5e385d4852cc195
parentcee92931cbe24efa9348d14a126bf70f811091c3 (diff)
downloadperipheralmanager-6196081a689aa9f4457458848c90d2d5362e0ddc.tar.gz
Fix typo.
Bug: None Change-Id: I1cba67057b96ec4d123c31d4a52e80f7e29ae207
-rw-r--r--client/wrapper.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/wrapper.cc b/client/wrapper.cc
index 2476b21..785ceb4 100644
--- a/client/wrapper.cc
+++ b/client/wrapper.cc
@@ -58,7 +58,7 @@ int BPeripheralManagerClient_openGpio(const BPeripheralManagerClient* client,
int BGpio_setDirection(const BGpio* gpio, int direction) {
android::GpioDirection dir;
if (!DirectionFromInt(direction, &dir))
- return PERIPHERAL_IO_UNKNOWN;
+ return PERIPHERAL_IO_UNKNOWN_ERROR;
return gpio->impl->SetDirection(dir);
}
@@ -66,7 +66,7 @@ int BGpio_setDirection(const BGpio* gpio, int direction) {
int BGpio_setEdgeTriggerType(const BGpio* gpio, int type) {
android::GpioEdgeType t;
if (!EdgeTypeFromInt(type, &t))
- return PERIPHERAL_IO_UNKNOWN;
+ return PERIPHERAL_IO_UNKNOWN_ERROR;
return gpio->impl->SetEdgeTriggerType(t);
}
@@ -74,7 +74,7 @@ int BGpio_setEdgeTriggerType(const BGpio* gpio, int type) {
int BGpio_setActiveType(const BGpio* gpio, int type) {
android::GpioActiveType t;
if (!ActiveTypeFromInt(type, &t))
- return PERIPHERAL_IO_UNKNOWN;
+ return PERIPHERAL_IO_UNKNOWN_ERROR;
return gpio->impl->SetActiveType(t);
}