aboutsummaryrefslogtreecommitdiff
path: root/src/modules/systemlib
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2014-12-17 16:31:40 +0100
committerThomas Gubler <thomasgubler@gmail.com>2014-12-17 16:31:40 +0100
commit4402d7106bc63b2a02a1e4c22f54e072b3c48fc7 (patch)
treec1597cba369d070c9cf03a60bb58a25b59acf613 /src/modules/systemlib
parent0a1e94d504b38d30c2d7428300c5728798db094d (diff)
downloadpx4-firmware-4402d7106bc63b2a02a1e4c22f54e072b3c48fc7.tar.gz
px4-firmware-4402d7106bc63b2a02a1e4c22f54e072b3c48fc7.tar.bz2
px4-firmware-4402d7106bc63b2a02a1e4c22f54e072b3c48fc7.zip
improve and fix multiplatform param by name macro
Diffstat (limited to 'src/modules/systemlib')
-rw-r--r--src/modules/systemlib/circuit_breaker.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/systemlib/circuit_breaker.cpp b/src/modules/systemlib/circuit_breaker.cpp
index 2df13ebff..ea478a60f 100644
--- a/src/modules/systemlib/circuit_breaker.cpp
+++ b/src/modules/systemlib/circuit_breaker.cpp
@@ -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);
}