]> git.itanic.dy.fi Git - glucose/commit
Do not return error if no more entries are read
authorTimo Kokkonen <timo.t.kokkonen@iki.fi>
Mon, 23 Jul 2012 15:01:28 +0000 (18:01 +0300)
committerTimo Kokkonen <timo.t.kokkonen@iki.fi>
Mon, 23 Jul 2012 15:01:28 +0000 (18:01 +0300)
commit0d76cc50c3fc819f3af93c4046365f38789e7fc3
treedd0bc34b6a87eff2502ee20c9703aed7b2781eba
parent1059ea111d5267a125e536c1b17c9f9e9c858a0c
Do not return error if no more entries are read

Since commit 009c9b76361 the tool was always returning an error
condition when the last entry was read from the meter. This is not
correct as reading the last entry is not an error condition.

Unfortunately it is not know how to detect the lack of entries from
the device from the last read entry. Therefore, in case we fail to
read proper data from the device, we will always assume we were able
to read all entries.

Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
main.c