mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 18:41:35 +08:00
FMUv4 compile fix
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user