mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
Fix comment typo
This commit is contained in:
parent
f4916e4c74
commit
4a3bb45a56
2 changed files with 2 additions and 2 deletions
|
@ -131,7 +131,7 @@ static void mpuIntExtiHandler(extiCallbackRec_t *cb)
|
|||
{
|
||||
gyroDev_t *gyro = container_of(cb, gyroDev_t, exti);
|
||||
|
||||
// Ideally we'd use a time to capture such information, but unfortunately the port used for EXTI interrupt does
|
||||
// Ideally we'd use a timer to capture such information, but unfortunately the port used for EXTI interrupt does
|
||||
// not have an associated timer
|
||||
uint32_t nowCycles = getCycleCounter();
|
||||
int32_t gyroLastPeriod = cmpTimeCycles(nowCycles, gyro->gyroLastEXTI);
|
||||
|
|
|
@ -294,7 +294,7 @@ busStatus_e bmi270Intcallback(uint32_t arg)
|
|||
void bmi270ExtiHandler(extiCallbackRec_t *cb)
|
||||
{
|
||||
gyroDev_t *gyro = container_of(cb, gyroDev_t, exti);
|
||||
// Ideally we'd use a time to capture such information, but unfortunately the port used for EXTI interrupt does
|
||||
// Ideally we'd use a timer to capture such information, but unfortunately the port used for EXTI interrupt does
|
||||
// not have an associated timer
|
||||
uint32_t nowCycles = getCycleCounter();
|
||||
gyro->gyroSyncEXTI = gyro->gyroLastEXTI + gyro->gyroDmaMaxDuration;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue