Skip to content

Commit be63d5b

Browse files
author
Nathan Seidle
committed
Changing default SPI freq to 4MHz
A 4MHz default is more safe. More platforms have a good divisor at 4MHz rather than 6MHz or 7MHz so we are more likely not to violate the 7MHz max SPI speed.
1 parent 1282690 commit be63d5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ICM_20948.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ class ICM_20948_I2C : public ICM_20948
138138
};
139139

140140
// SPI
141-
#define ICM_20948_SPI_DEFAULT_FREQ 6000000
141+
#define ICM_20948_SPI_DEFAULT_FREQ 4000000
142142
#define ICM_20948_SPI_DEFAULT_ORDER MSBFIRST
143143
#define ICM_20948_SPI_DEFAULT_MODE SPI_MODE0
144144

0 commit comments

Comments
 (0)