From e6d3d2a8ae284437abc8aa48485d0907f2c508d1 Mon Sep 17 00:00:00 2001 From: SMFSW Date: Sun, 27 May 2018 15:57:06 +0200 Subject: [PATCH] v1.3: Delay between retries set to 1ms --- Clean.bat | 14 -------------- Doxyfile | 2 +- ReleaseNotes.md | 3 ++- src/ci2c.c | 4 ++-- src/ci2c.h | 2 +- 5 files changed, 6 insertions(+), 19 deletions(-) delete mode 100755 Clean.bat diff --git a/Clean.bat b/Clean.bat deleted file mode 100755 index 473085d..0000000 --- a/Clean.bat +++ /dev/null @@ -1,14 +0,0 @@ -@ECHO off -ECHO #*************************************************************** -ECHO # File : clean.bat -ECHO # -ECHO # Command lines script: Clearing output, temporary and log files -ECHO #*************************************************************** - - -@ECHO on - -::del *.o /s -del cI2C.chm -del /f /q /s workdir\ -rmdir workdir \ No newline at end of file diff --git a/Doxyfile b/Doxyfile index 1e55c9b..1d8b2e7 100755 --- a/Doxyfile +++ b/Doxyfile @@ -770,7 +770,7 @@ WARN_FORMAT = "$file:$line: $text" # messages should be written. If left blank the output is written to standard # error (stderr). -WARN_LOGFILE = doxy.log +WARN_LOGFILE = workdir/doxy.log #--------------------------------------------------------------------------- # Configuration options related to the input files diff --git a/ReleaseNotes.md b/ReleaseNotes.md index 7e03091..e6502ec 100755 --- a/ReleaseNotes.md +++ b/ReleaseNotes.md @@ -15,7 +15,8 @@ Feel free to share your thoughts @ xgarmanboziax@gmail.com about: ------------ ** Actual: -v1.3 3 May 2018: +v1.3 13 May 2018: +- Delay between retries is now 1ms - Adding support for unit tests and doxygen documentation generation with Travis CI - Updated README.md diff --git a/src/ci2c.c b/src/ci2c.c index 0920e0a..5fe80bf 100755 --- a/src/ci2c.c +++ b/src/ci2c.c @@ -1,6 +1,6 @@ /*!\file ci2c.c ** \author SMFSW -** \copyright MIT SMFSW (2017) +** \copyright MIT SMFSW (2017-2018) ** \brief arduino master i2c in plain c code ** \warning Don't access (r/w) last 16b internal address byte alone right after init, this would lead to hazardous result (in such case, make a dummy read of addr 0 before) **/ @@ -232,7 +232,7 @@ static I2C_STATUS I2C_comm(I2C_SLAVE * slave, const uint16_t reg_addr, uint8_t * ack = fc(slave, reg_addr, data, bytes); while ((!ack) && (retry != 0)) // If com not successful, retry some more times { - delay(5); + delay(1); ack = fc(slave, reg_addr, data, bytes); retry--; } diff --git a/src/ci2c.h b/src/ci2c.h index 365a755..39d1ba0 100755 --- a/src/ci2c.h +++ b/src/ci2c.h @@ -1,6 +1,6 @@ /*!\file ci2c.h ** \author SMFSW -** \copyright MIT SMFSW (2017) +** \copyright MIT SMFSW (2017-2018) ** \brief arduino i2c in plain c declarations ** \warning Don't access (r/w) last 16b internal address byte alone right after init, this would lead to hazardous result (in such case, make a dummy read of addr 0 before) **/