diff --git a/components/bmi270/include/bmi270.hpp b/components/bmi270/include/bmi270.hpp index 1f629b8cc..675991247 100644 --- a/components/bmi270/include/bmi270.hpp +++ b/components/bmi270/include/bmi270.hpp @@ -85,6 +85,12 @@ class Bmi270 : public espp::BasePeripheral({}, "Bmi270", config.log_level) , orientation_filter_(config.orientation_filter) - , imu_config_(config.imu_config) { + , imu_config_(config.imu_config) + , burst_write_size_(config.burst_write_size == 0 ? config_file_size : config.burst_write_size) { if constexpr (Interface == bmi270::Interface::I2C) { set_address(config.device_address); } @@ -565,9 +572,9 @@ class Bmi270 : public espp::BasePeripheral