From 180321029a68fdedeb69a7140f562e71e24fd023 Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Sun, 29 Aug 2010 15:01:33 +0200 Subject: [PATCH] Fixed a small mistake in the previous commit. --- src/zeagle_n2ition3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zeagle_n2ition3.c b/src/zeagle_n2ition3.c index ba4201f..5e81c7c 100644 --- a/src/zeagle_n2ition3.c +++ b/src/zeagle_n2ition3.c @@ -356,10 +356,10 @@ zeagle_n2ition3_device_foreach (device_t *abstract, dive_callback_t callback, vo unsigned int available = 0; unsigned int remaining = total; unsigned int offset = RB_PROFILE_END - RB_PROFILE_BEGIN; - unsigned int address = previous; idx = last; previous = eop; + unsigned int address = previous; for (unsigned int i = 0; i < count; ++i) { // Get the pointer to the profile data. unsigned int current = array_uint16_le (config + 2 * idx);