zephyr/samples/drivers/current_sensing
Sergio Rodriguez b0c0548ad6 samples: drivers: current sensing : Exit from testcase if device not found
Exiting from the test case when the i2c device is not found, this
to avoid a null pointer dereference

This issue was reported by Coverity

Coverity-CID: 151982

Change-Id: Ib11224ef2a78170f6e4d20545f645b4f2ea4a181
Signed-off-by: Sergio Rodriguez <sergio.sf.rodriguez@intel.com>
2016-11-29 03:45:39 +00:00
..
src samples: drivers: current sensing : Exit from testcase if device not found 2016-11-29 03:45:39 +00:00
Makefile
README
prj.conf
testcase.ini

README

This is a sample app to interface with
TI INA219 power monitor. The values
used in the app are for use on Adafruit's
breakout board
(https://www.adafruit.com/products/904).

This assumes the slave address is 0x40,
where A0 and A1 are all tied to ground.