AP_Hal_Linux: PCA9685: do not shutdown

Shutting down causes the pulses to be cut short, often causing
ESCs to interpret this pulse
This commit is contained in:
Willian Galvani 2022-01-12 15:43:57 -03:00 committed by Andrew Tridgell
parent 176de8aa86
commit b5de26c1f2

View File

@ -173,8 +173,6 @@ bool RCOutput_PCA9685::force_safety_on() {
}
/* Shutdown before sleeping. */
_dev->write_register(PCA9685_RA_ALL_LED_OFF_H, PCA9685_ALL_LED_OFF_H_SHUT);
/* Put PCA9685 to sleep */
_dev->write_register(PCA9685_RA_MODE1, PCA9685_MODE1_SLEEP_BIT);
_dev->get_semaphore()->give();
return true;