1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 21:35:44 +03:00

Fix DSHOT on G4

This commit is contained in:
Steve Evans 2021-12-24 01:49:26 +00:00
parent 4bc7a2c7fa
commit b701b89a7c
2 changed files with 11 additions and 5 deletions

View file

@ -622,8 +622,14 @@ static void bbUpdateComplete(void)
bbPort->inputActive = false;
bbSwitchToOutput(bbPort);
}
}
} else
#endif
{
#if defined(STM32G4)
// Using circular mode resets the counter one short, so explicitly reload
bbSwitchToOutput(bbPort);
#endif
}
bbDMA_Cmd(bbPort, ENABLE);
}