aboutsummaryrefslogtreecommitdiff
path: root/apps/px4io
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2012-12-28 20:19:47 +0100
committerLorenz Meier <lm@inf.ethz.ch>2012-12-28 20:19:47 +0100
commitbe85589e48cdc1b297bffe8e492cd7d69f949b4b (patch)
tree2bc14f27a0634c72a65bab4edb2f468141377794 /apps/px4io
parent9e2076b4e4a48e20e7e5e7d85491e842cc827e22 (diff)
downloadpx4-firmware-be85589e48cdc1b297bffe8e492cd7d69f949b4b.tar.gz
px4-firmware-be85589e48cdc1b297bffe8e492cd7d69f949b4b.tar.bz2
px4-firmware-be85589e48cdc1b297bffe8e492cd7d69f949b4b.zip
Fixed some typos
Diffstat (limited to 'apps/px4io')
-rw-r--r--apps/px4io/comms.c1
-rw-r--r--apps/px4io/px4io.h4
2 files changed, 2 insertions, 3 deletions
diff --git a/apps/px4io/comms.c b/apps/px4io/comms.c
index 2b8f95534..d41de54a2 100644
--- a/apps/px4io/comms.c
+++ b/apps/px4io/comms.c
@@ -228,7 +228,6 @@ comms_handle_command(const void *buffer, size_t length)
break;
}
}
- system_state.relays[i] != cmd->relay_state[i]
}
irqrestore(flags);
diff --git a/apps/px4io/px4io.h b/apps/px4io/px4io.h
index 9cfd8f716..e9a2ff053 100644
--- a/apps/px4io/px4io.h
+++ b/apps/px4io/px4io.h
@@ -162,8 +162,8 @@ extern volatile int timers[TIMER_NUM_TIMERS];
#define LED_SAFETY(_s) stm32_gpiowrite(GPIO_LED3, !(_s))
#define POWER_SERVO(_s) stm32_gpiowrite(GPIO_SERVO_PWR_EN, (_s))
-#define POWER_ACC1(_s) stm32_gpiowrite(GPIO_SERVO_ACC1_EN, (_s))
-#define POWER_ACC2(_s) stm32_gpiowrite(GPIO_SERVO_ACC2_EN, (_s))
+#define POWER_ACC1(_s) stm32_gpiowrite(GPIO_ACC1_PWR_EN, (_s))
+#define POWER_ACC2(_s) stm32_gpiowrite(GPIO_ACC2_PWR_EN, (_s))
#define POWER_RELAY1(_s) stm32_gpiowrite(GPIO_RELAY1_EN, (_s))
#define POWER_RELAY2(_s) stm32_gpiowrite(GPIO_RELAY2_EN, (_s))