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.
Dependencies: ADXL362 mbed MPL3115A2
Diff: main.cpp
- Revision:
- 7:446c8e17a945
- Parent:
- 6:f05c72e636aa
- Child:
- 8:9c9d58ca2b79
diff -r f05c72e636aa -r 446c8e17a945 main.cpp --- a/main.cpp Thu Feb 22 20:26:49 2018 +0000 +++ b/main.cpp Thu Feb 22 20:36:34 2018 +0000 @@ -96,7 +96,7 @@ }else{ // start sending stuff //first check DEVID_AD == 0xAD - int devid = (int) adxl362.read_reg_u16(ADXL362::DEVID_AD); + uint8_t devid = adxl362.read_reg(ADXL362::DEVID_AD); printf("devid = %d\n", devid); if(devid != 0xAD){ printf("error: DEVID_AD is not 0xAD; exiting\n");