Mavlink: ifdef networking code

This commit is contained in:
Daniel Agar
2019-09-21 13:46:01 -04:00
parent 86dc4c5a00
commit fe4f6c186e
4 changed files with 156 additions and 97 deletions
+2 -2
View File
@@ -272,11 +272,11 @@ MavlinkParametersManager::send(const hrt_abstime t)
{
int max_num_to_send;
if (_mavlink->get_protocol() == SERIAL && !_mavlink->is_usb_uart()) {
if (_mavlink->get_protocol() == Protocol::SERIAL && !_mavlink->is_usb_uart()) {
max_num_to_send = 3;
} else {
// speed up parameter loading via UDP, TCP or USB: try to send 20 at once
// speed up parameter loading via UDP or USB: try to send 20 at once
max_num_to_send = 20;
}