![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
New Version with OS5
Diff: OPT3101device_Functions.cpp
- Revision:
- 3:0eb6a9927171
- Parent:
- 0:62b846b3988a
diff -r f30187bb3fbd -r 0eb6a9927171 OPT3101device_Functions.cpp --- a/OPT3101device_Functions.cpp Sun Oct 25 10:16:43 2020 +0000 +++ b/OPT3101device_Functions.cpp Sun Oct 25 10:45:04 2020 +0000 @@ -100,7 +100,7 @@ bool OPT3101::device::validateI2C() { /// <b>Algorithm of the method is as follows</b> uint32_t data; - bool status; + bool status=false; //0x8001A0 //data=0xA001802E //data[0]=0x8; @@ -108,7 +108,7 @@ status = 0; host.printf("INFO::Validating I2C Transaction\r\n"); //#ifdef TIMSP430F5529_LAUNCHPAD_CALIBRATION_TOOL - status=host.i2c.read(0x2E,&data); + //status=host.i2c_a.read(0x2E,&data); //TODO Fix this stauts check if(status){ host.printfSetColor(0b010); host.printf("INFO::I2C Transaction Successful\r\n");