mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-27 08:10:34 +08:00
improve and fix multiplatform param by name macro
This commit is contained in:
@@ -48,8 +48,7 @@
|
||||
bool circuit_breaker_enabled(const char* breaker, int32_t magic)
|
||||
{
|
||||
int32_t val;
|
||||
/* (void)param_get(param_find(breaker), &val); */
|
||||
(void)PX4_PARAM_GET_NAME(breaker, &val);
|
||||
(void)PX4_PARAM_GET_BYNAME(breaker, &val);
|
||||
|
||||
return (val == magic);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user