FMUv4 compile fix

This commit is contained in:
Lorenz Meier
2016-05-05 14:09:03 +02:00
parent 084dfb4026
commit 192510ee1c
+3 -3
View File
@@ -795,7 +795,7 @@ param_load_default(void)
#if defined (CONFIG_ARCH_BOARD_PX4FMU_V4) #if defined (CONFIG_ARCH_BOARD_PX4FMU_V4)
//struct spi_dev_s *dev = nullptr; //struct spi_dev_s *dev = nullptr;
irqstate_t state; irqstate_t irq_state;
#endif #endif
static void static void
@@ -816,10 +816,10 @@ param_bus_lock(bool lock)
// we lock like this for Pixracer for now // we lock like this for Pixracer for now
if (lock) { if (lock) {
state = irqsave(); irq_state = irqsave();
} else { } else {
irqrestore(state); irqrestore(irq_state);
} }
#endif #endif