HAL_ChibiOS: improved reliability of DShot passthru

thanks to WickedShell for debugging this on his Wraith32 ESCs. We were
truncating the last bit on some BLHeli transfers
This commit is contained in:
Andrew Tridgell 2018-05-22 16:11:45 +10:00
parent 31e7131c33
commit f3179e7934

View File

@ -1093,10 +1093,12 @@ bool RCOutput::serial_write_bytes(const uint8_t *bytes, uint16_t len)
return false;
}
}
serial_group->dma_handle->unlock();
// add a small delay for last word of output to have completely
// finished
hal.scheduler->delay_microseconds(10);
hal.scheduler->delay_microseconds(25);
serial_group->dma_handle->unlock();
return true;
}