mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-27 02:40:37 +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)
|
||||
//struct spi_dev_s *dev = nullptr;
|
||||
irqstate_t state;
|
||||
irqstate_t irq_state;
|
||||
#endif
|
||||
|
||||
static void
|
||||
@@ -816,10 +816,10 @@ param_bus_lock(bool lock)
|
||||
|
||||
// we lock like this for Pixracer for now
|
||||
if (lock) {
|
||||
state = irqsave();
|
||||
irq_state = irqsave();
|
||||
|
||||
} else {
|
||||
irqrestore(state);
|
||||
irqrestore(irq_state);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user