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: TestBenchSerenity-proto_F429ZI TestBenchFlow HSPFLOW1 TestBenchFlow1 ... more
Diff: keller_pressure.cpp
- Revision:
- 4:c298ec31dd93
- Parent:
- 3:1a0add40e308
- Child:
- 5:3ac90d95062a
diff -r 1a0add40e308 -r c298ec31dd93 keller_pressure.cpp --- a/keller_pressure.cpp Tue May 23 17:29:25 2017 +0000 +++ b/keller_pressure.cpp Mon Jun 05 21:01:56 2017 +0000 @@ -121,7 +121,7 @@ { char error = 0; char data[3]; - + error |= _read_multibyte(KELLER_PRESSURE_CUST_ID0, data, 3); Cust_ID0 = (data[1] << 8) | data[2]; @@ -185,9 +185,9 @@ if(getStatus() == KELLER_PRESSURE_MEASUREMENT_DONE) { break; } - wait_us(10); + wait_us(200); if (i == 49) { - error |= 1; + error |= 1; // Timout after 50 attempts } } error |= i2c.read(mi2cAddress|I2C_READ, data, count, false);