mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
FMUv4 compile fix
This commit is contained in:
parent
084dfb4026
commit
192510ee1c
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user