diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2015-04-09 19:35:14 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2015-04-09 19:35:14 +0200 |
commit | 79f645974088aaf73b1d76266cac55346295f5b6 (patch) | |
tree | 80d725452fffef6cdb7e948dcd9c46b6c75ed953 /src/modules | |
parent | 309a767c06d707f5a95b165b19123c8728659510 (diff) | |
download | px4-firmware-79f645974088aaf73b1d76266cac55346295f5b6.tar.gz px4-firmware-79f645974088aaf73b1d76266cac55346295f5b6.tar.bz2 px4-firmware-79f645974088aaf73b1d76266cac55346295f5b6.zip |
mavlink app: Code style fix
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/mavlink/mavlink_main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/mavlink/mavlink_main.cpp b/src/modules/mavlink/mavlink_main.cpp index 209ac5d8f..ba049bac4 100644 --- a/src/modules/mavlink/mavlink_main.cpp +++ b/src/modules/mavlink/mavlink_main.cpp @@ -780,7 +780,7 @@ Mavlink::send_message(const uint8_t msgid, const void *msg, uint8_t component_ID /* use mavlink's internal counter for the TX seq */ buf[2] = mavlink_get_channel_status(_channel)->current_tx_seq++; buf[3] = mavlink_system.sysid; - buf[4] = component_ID==0 ? mavlink_system.compid:component_ID; + buf[4] = (component_ID == 0) ? mavlink_system.compid : component_ID; buf[5] = msgid; /* payload */ |