diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-12-21 12:46:06 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-12-21 12:46:06 +0100 |
commit | 3e037d40de2a68b99aa4600f060eab3555f75832 (patch) | |
tree | 239e4a550e24b823dbe1fe619085f0a54f38bcd5 | |
parent | 0f0dc5ba068d24fb8b339acc8ef850f5f6ea9e47 (diff) | |
download | px4-firmware-3e037d40de2a68b99aa4600f060eab3555f75832.tar.gz px4-firmware-3e037d40de2a68b99aa4600f060eab3555f75832.tar.bz2 px4-firmware-3e037d40de2a68b99aa4600f060eab3555f75832.zip |
Fixed bracketing error
-rw-r--r-- | src/drivers/px4io/px4io.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/drivers/px4io/px4io.cpp b/src/drivers/px4io/px4io.cpp index df96fa0bb..a7f7fce45 100644 --- a/src/drivers/px4io/px4io.cpp +++ b/src/drivers/px4io/px4io.cpp @@ -901,16 +901,19 @@ PX4IO::task_main() int32_t voltage_scaling_val; param_t voltage_scaling_param; - /* see if bind parameter has been set, and reset it to -1 */ + /* set battery voltage scaling */ param_get(voltage_scaling_param = param_find("BAT_V_SCALE_IO"), &voltage_scaling_val); - /* send channel config to IO */ + /* send scaling voltage to IO */ uint16_t scaling = voltage_scaling_val; int pret = io_reg_set(PX4IO_PAGE_SETUP, PX4IO_P_SETUP_VBATT_SCALE, &scaling, 1); if (pret != OK) { log("voltage scaling upload failed"); } + } + + } perf_end(_perf_update); } |