Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of AK9752 by
Diff: AK9752.cpp
- Revision:
- 2:0b59cfeee8ee
- Parent:
- 0:51fa46d39a3e
- Child:
- 4:2f4c8e641ce9
--- a/AK9752.cpp Fri Jul 08 22:27:55 2016 +0000
+++ b/AK9752.cpp Fri Oct 28 21:30:24 2016 +0000
@@ -43,7 +43,7 @@
}
AK9752::Status AK9752::read(char registerAddress, char *buf, int length) {
- // Writes a start address
+ // Writes the first register address
if (connection->write((slaveAddress << 1), ®isterAddress, LEN_ONE_BYTE) != 0) {
// I2C write failed.
return AK9752::ERROR_I2C_WRITE;
@@ -68,7 +68,7 @@
data[1+i] = buf[i];
}
- // Writes a start address.
+ // Writes data.
if (connection->write((slaveAddress << 1), data, bufLength) != 0) {
// I2C write failed.
return AK9752::ERROR_I2C_WRITE;
