projects
/
bertos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
66765bd
)
Merged from external project:
author
batt
<batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 9 Oct 2008 14:04:40 +0000
(14:04 +0000)
committer
batt
<batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 9 Oct 2008 14:04:40 +0000
(14:04 +0000)
**********
r22505 | batt | 2008-10-09 15:57:52 +0200 (Thu, 09 Oct 2008) | 1 line
Refactor: i2c_stop returns void.
**********
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1890
38d2e660
-2303-0410-9eaa-
f027e97ec537
bertos/drv/pcf8574.c
patch
|
blob
|
history
diff --git
a/bertos/drv/pcf8574.c
b/bertos/drv/pcf8574.c
index 41d54e0ca8b234ac9e113c203355f9ab641b8f69..c4477efce2df8c9d39c41048c315e82c41e81129 100644
(file)
--- a/
bertos/drv/pcf8574.c
+++ b/
bertos/drv/pcf8574.c
@@
-68,7
+68,9
@@
int pcf8574_get(Pcf8574 *pcf)
*/
bool pcf8574_put(Pcf8574 *pcf, uint8_t data)
{
- return i2c_start_w(PCF8574ID | ((pcf->addr << 1) & 0xF7)) && i2c_put(data) && i2c_stop();
+ bool res = i2c_start_w(PCF8574ID | ((pcf->addr << 1) & 0xF7)) && i2c_put(data);
+ i2c_stop();
+ return res;
}
/**