feat(driver): autodetect IMU, add support for SC7U22 (#7191)
Co-authored-by: raphaelcoeffic <1050031+raphaelcoeffic@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
raphaelcoeffic
Claude Opus 4.6
parent
5ea531d391
commit
0ce5c8f3f2
@@ -128,7 +128,7 @@ constexpr uint8_t MIXER_MAX_PERIOD = MAX_REFRESH_RATE / 1000 /*ms*/;
|
||||
void execMixerFrequentActions()
|
||||
{
|
||||
#if defined(IMU)
|
||||
gyro.wakeup();
|
||||
gyroWakeup();
|
||||
#endif
|
||||
|
||||
#if defined(BLUETOOTH)
|
||||
@@ -138,10 +138,6 @@ void execMixerFrequentActions()
|
||||
|
||||
void mixerTask()
|
||||
{
|
||||
#if defined(IMU)
|
||||
gyroInit();
|
||||
#endif
|
||||
|
||||
while (task_running()) {
|
||||
|
||||
int timeout = 0;
|
||||
|
||||
Reference in New Issue
Block a user