Skip to content

Commit ae71554

Browse files
committed
Update bmm150.ino
1 parent 37a6214 commit ae71554

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bmm150.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ int8_t i2c_read(uint8_t dev_id, uint8_t reg_addr, uint8_t *read_data, uint16_t l
2828
uint8_t index = 0;
2929
Wire.beginTransmission(dev_id);
3030
Wire.write(reg_addr);
31-
Wire.endTransmission();
31+
Wire.endTransmission(false); // falseじゃないとタイミングによってはごきげん斜めかも?
3232
if(Wire.requestFrom(dev_id, (uint8_t)len)) {
3333
for(uint8_t i = 0;i < len;i++) {
3434
read_data[index++] = Wire.read(); // Put read results in the Rx buffer

0 commit comments

Comments
 (0)