From 17f60f1a09c7e4aea66b44ee1f5cd99c75594c71 Mon Sep 17 00:00:00 2001 From: Niklas Jensen Date: Fri, 26 Dec 2025 23:33:10 +0100 Subject: [PATCH] Initialize default DMP for ICM20948 --- esp32/include/peripherals/imu.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/esp32/include/peripherals/imu.h b/esp32/include/peripherals/imu.h index 7893a13..2823de0 100644 --- a/esp32/include/peripherals/imu.h +++ b/esp32/include/peripherals/imu.h @@ -88,11 +88,13 @@ class IMU : public SensorBase { #endif #if FT_ENABLED(USE_ICM20948) #if FT_ENABLED(USE_ICM20948_SPIMODE) > 0 + #define ICM_20948_USE_DMP // TODO: Move to features.ini SPI_PORT.begin(SPI_SCK, SPI_MISO, SPI_MOSI, -1); // TODO: Move to global spi start _imu = (ICM_20948_SPI*)_arg; #ifndef ICM20948_ALIVE #define ICM20948_ALIVE _imu->begin(ICM20948_SPI_CS, SPI_PORT); ESP_LOGI("IMU", "Beginning ICM20948 in SPI mode"); + _imu->initializeDMP(); #endif #else _imu = (ICM_20948_I2C*)_arg;