mirror of https://github.com/ArduPilot/ardupilot
AP_ESC_Telem: ensure that EDTv2 only gets logged when telemetry is available
This commit is contained in:
parent
6e263532c8
commit
a52c375643
|
@ -758,7 +758,6 @@ void AP_ESC_Telem::update()
|
|||
telemdata.power_percentage);
|
||||
}
|
||||
#endif //AP_EXTENDED_ESC_TELEM_ENABLED
|
||||
}
|
||||
|
||||
#if AP_EXTENDED_DSHOT_TELEM_V2_ENABLED
|
||||
// Write an EDTv2 message, if there is any update
|
||||
|
@ -806,6 +805,7 @@ void AP_ESC_Telem::update()
|
|||
#endif // AP_EXTENDED_DSHOT_TELEM_V2_ENABLED
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // HAL_LOGGING_ENABLED
|
||||
|
||||
const uint32_t now_us = AP_HAL::micros();
|
||||
|
|
Loading…
Reference in New Issue