forked from Archive/PX4-Autopilot
Hotfix: Fix use of circuit breaker param
This commit is contained in:
parent
8408993a67
commit
45433c3711
|
@ -86,7 +86,7 @@ PARAM_DEFINE_INT32(CBRK_IO_SAFETY, 0);
|
|||
bool circuit_breaker_enabled(const char* breaker, int32_t magic)
|
||||
{
|
||||
int32_t val;
|
||||
(void)param_get(param_find(breaker), val);
|
||||
(void)param_get(param_find(breaker), &val);
|
||||
|
||||
return (val == magic);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue