summaryrefslogtreecommitdiff
path: root/driver/baro_bmp280.h
diff options
context:
space:
mode:
Diffstat (limited to 'driver/baro_bmp280.h')
-rw-r--r--driver/baro_bmp280.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/driver/baro_bmp280.h b/driver/baro_bmp280.h
index 94da35dbe1..be2611289c 100644
--- a/driver/baro_bmp280.h
+++ b/driver/baro_bmp280.h
@@ -166,6 +166,9 @@
*/
#define BMP280_BARO_MIN_FREQ 75000
#define BMP280_BARO_MAX_FREQ 87000
+#if (CONFIG_EC_MAX_SENSOR_FREQ_MILLIHZ <= BMP280_BARO_MAX_FREQ)
+#error "EC too slow for accelerometer"
+#endif
/**************************************************************/
/* STRUCTURE and ENUM DEFINITIONS */