diff options
author | Diego Ismirlian <dismirlian@gmail.com> | 2019-09-29 10:25:16 -0300 |
---|---|---|
committer | Diego Ismirlian <dismirlian@gmail.com> | 2019-09-29 10:25:16 -0300 |
commit | 8db69eb38c86b7078e4d1ab055704e11a47bb573 (patch) | |
tree | a15f18fd2218ff2de07b4b82351ef4ed6c3e0ad3 /os/hal/src/hal_ee24xx.c | |
parent | 7b2c61a676e024163057ec5ccc508a29ab3b9ed4 (diff) | |
parent | 8f7c2d187bbb02915f44b926c7aa02185402aef7 (diff) | |
download | ChibiOS-Contrib-8db69eb38c86b7078e4d1ab055704e11a47bb573.tar.gz ChibiOS-Contrib-8db69eb38c86b7078e4d1ab055704e11a47bb573.tar.bz2 ChibiOS-Contrib-8db69eb38c86b7078e4d1ab055704e11a47bb573.zip |
Merge branch 'master' of https://github.com/ChibiOS/ChibiOS-Contrib
Diffstat (limited to 'os/hal/src/hal_ee24xx.c')
-rw-r--r-- | os/hal/src/hal_ee24xx.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/os/hal/src/hal_ee24xx.c b/os/hal/src/hal_ee24xx.c index 1df1b9f..a415f2d 100644 --- a/os/hal/src/hal_ee24xx.c +++ b/os/hal/src/hal_ee24xx.c @@ -198,7 +198,7 @@ static size_t __clamp_size(void *ip, size_t n) { /** * @brief Write data that can be fitted in one page boundary */ -static void __fitted_write(void *ip, const uint8_t *data, size_t len, uint32_t *written) { +static msg_t __fitted_write(void *ip, const uint8_t *data, size_t len, uint32_t *written) { msg_t status = MSG_RESET; @@ -210,6 +210,8 @@ static void __fitted_write(void *ip, const uint8_t *data, size_t len, uint32_t * *written += len; eepfs_lseek(ip, eepfs_getposition(ip) + len); } + + return status; } /** |