From: batt Date: Wed, 26 May 2010 14:39:23 +0000 (+0000) Subject: Fix a bug found by Massimiliano Cialdi: X-Git-Tag: 2.5.0~75 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=a420d7004668e6a9d3b1cb47633932bef21ac962;p=bertos.git Fix a bug found by Massimiliano Cialdi: Issue a stop condition before returning from eeprom_read(). git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3842 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/drv/eeprom.c b/bertos/drv/eeprom.c index 01f483f2..8d443910 100644 --- a/bertos/drv/eeprom.c +++ b/bertos/drv/eeprom.c @@ -256,6 +256,7 @@ static size_t eeprom_read(struct KFile *_fd, void *_buf, size_t size) rd_len++; } + i2c_stop(); return rd_len; }