CPS-Lab* / Mbed 2 deprecated lab6

Dependencies:   ADXL362 mbed MPL3115A2

Files at this revision

API Documentation at this revision

Comitter:
htdoughe
Date:
Thu Feb 22 20:36:34 2018 +0000
Parent:
6:f05c72e636aa
Child:
8:9c9d58ca2b79
Commit message:
chang from 16 to 8

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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");