Skip to content

Commit a202d8c

Browse files
committed
Update: IMU type check.
1 parent 003379a commit a202d8c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed
-3.05 KB
Binary file not shown.

LovyanLauncher/src/SystemInfo.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,10 @@ class SystemInfo : public MenuCallBack
135135
default: res = "MPU-????"; break;
136136
}
137137
} else if (M5.I2C.readByte(0x6C, 0x30, &tmp)) {
138-
res = "SH200Q";
138+
switch (tmp) {
139+
case 0x18: res = "SH200Q";
140+
default: res = "SH????";
141+
}
139142
} else {
140143
res = "not found";
141144
}

0 commit comments

Comments
 (0)