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.
Dependents: IZU2020_AVIONICS IZU2020_AVIONICS
Diff: PQINA226.cpp
- Revision:
- 2:2a98c184354f
- Parent:
- 1:13a0acb5a366
- Child:
- 3:252d161776cc
diff -r 13a0acb5a366 -r 2a98c184354f PQINA226.cpp
--- a/PQINA226.cpp Tue Dec 03 13:40:02 2019 +0000
+++ b/PQINA226.cpp Wed Dec 04 08:18:37 2019 +0000
@@ -19,8 +19,8 @@
{
cmd[0] = WHO_AM_I;
_i2c->write(_addr, cmd, 1);
- _i2c->read(_addr, buff, 2);
- if(buff[0] == 0x54 && buff[1] == 0x49) {
+ _i2c->read(_addr, buff, 1);
+ if(buff[0] == 0x22) {
return true;
} else {
return false;