projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove svn tag.
[bertos.git]
/
bertos
/
drv
/
eeprom.c
diff --git
a/bertos/drv/eeprom.c
b/bertos/drv/eeprom.c
index f92091487ae0cc9daeb2fb7cf7bcbd210a2f8d1a..7240fccad00bd4601d109be524553131d7196cd2 100644
(file)
--- a/
bertos/drv/eeprom.c
+++ b/
bertos/drv/eeprom.c
@@
-32,8
+32,6
@@
*
* \brief Driver for the 24xx16 and 24xx256 I2C EEPROMS (implementation)
*
*
* \brief Driver for the 24xx16 and 24xx256 I2C EEPROMS (implementation)
*
- *
- * \version $Id$
* \author Stefano Fedrigo <aleph@develer.com>
* \author Bernie Innocenti <bernie@codewiz.org>
*/
* \author Stefano Fedrigo <aleph@develer.com>
* \author Bernie Innocenti <bernie@codewiz.org>
*/
@@
-177,7
+175,7
@@
static size_t eeprom_writeVerify(struct KFile *_fd, const void *_buf, size_t siz
{
Eeprom *fd = EEPROM_CAST(_fd);
int retries = 5;
{
Eeprom *fd = EEPROM_CAST(_fd);
int retries = 5;
- size_t wr_len;
+ size_t wr_len
= 0
;
while (retries--)
{
while (retries--)
{
@@
-256,6
+254,7
@@
static size_t eeprom_read(struct KFile *_fd, void *_buf, size_t size)
rd_len++;
}
rd_len++;
}
+ i2c_stop();
return rd_len;
}
return rd_len;
}