Skip to content

Commit 83f5e1a

Browse files
committed
Improved IMU model identification for CoreS3
1 parent e036f32 commit 83f5e1a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utility/IMU_Class.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ namespace m5
8787
_imu = imu_t::imu_bmi270;
8888

8989
#if defined ( CONFIG_IDF_TARGET_ESP32S3 )
90-
if (board == m5::board_t::board_M5StackCoreS3)
90+
if (board == m5::board_t::board_M5StackCoreS3 && bmi2->getAddress() == 0x69)
9191
{ // CoreS3 では、地磁気のY軸Z軸をそれぞれ反転する
9292
_internal_axisorder_fixed[sensor_index_mag] = (internal_axisorder_t)(axis_invert_y | axis_invert_z); // Y軸,Z軸反転
9393
} else

0 commit comments

Comments
 (0)