mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 09:33:34 +08:00
Hotfix: Fix use of circuit breaker param
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user