Enable SPI for icm20948

This commit is contained in:
Niklas Jensen
2025-12-26 13:02:35 +01:00
parent b8038e402b
commit 7221418378
4 changed files with 10 additions and 11 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ class Magnetometer : public SensorBase<MagnetometerMsg> {
public:
bool initialize(void* _arg) override {
#if FT_ENABLED(USE_ICM20948)
#if USE_ICM20948_SPIMODE > 0
#if FT_ENABLED(USE_ICM20948_SPIMODE) > 0
_mag = (ICM_20948_SPI*)_arg;
if (true || !_mag->isConnected()) { _mag->begin(CS_PIN, SPI_PORT); ESP_LOGI("Magnetometer", "Beginning ICM20948 in SPI mode"); }
#else