Library for MAX7300 GPIO Expander
Revision 5:c4d2978bdebb, committed 2015-08-14
- Comitter:
- j3
- Date:
- Fri Aug 14 04:26:02 2015 +0000
- Parent:
- 4:4ffbd5539b69
- Child:
- 6:3674af0a03cf
- Commit message:
- changed repeated start to false after read in 'config_port' and 'write_config_register'
Changed in this revision
| max7300.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/max7300.cpp Fri Jul 24 01:54:41 2015 +0000
+++ b/max7300.cpp Fri Aug 14 04:26:02 2015 +0000
@@ -153,7 +153,7 @@
if(!result)
{
//get current port configuration register
- result = _p_i2c->read(_w_adrs, (data + 1), 1, true);
+ result = _p_i2c->read(_w_adrs, (data + 1), 1, false);
if(!result)
{
@@ -391,7 +391,7 @@
if(!result)
{
//get current configuration register
- result = _p_i2c->read(_w_adrs, (local_data + 1), 1, true);
+ result = _p_i2c->read(_w_adrs, (local_data + 1), 1, false);
if(!result)
{