This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
resources:tools-software:uc-drivers:max9611 [13 Apr 2023 09:47] Jose Ramon San Buenaventura |
resources:tools-software:uc-drivers:max9611 [27 Apr 2023 04:32] Jose Ramon San Buenaventura |
||
---|---|---|---|
Line 221: | Line 221: | ||
int mux_cnt = 0, mode_cnt = 0, dcnt = 0, rcnt = 0; | int mux_cnt = 0, mode_cnt = 0, dcnt = 0, rcnt = 0; | ||
- | for (int i = 0; i < NO_OS_ARRAY_SIZE(mux_conf); i++) { | + | for (int i = 0; i < 8; i++) { |
enum max9611_mux_conf mux, mux_new; | enum max9611_mux_conf mux, mux_new; | ||
ret = max9611_get_mux(max9611_device, &mux); | ret = max9611_get_mux(max9611_device, &mux); | ||
Line 243: | Line 243: | ||
} | } | ||
- | for (int i = 0; i < NO_OS_ARRAY_SIZE(mode_conf); i++) { | + | for (int i = 0; i < 3; i++) { |
enum max9611_mode_conf mode, mode_new; | enum max9611_mode_conf mode, mode_new; | ||
ret = max9611_get_mode(max9611_device, &mode); | ret = max9611_get_mode(max9611_device, &mode); | ||
Line 261: | Line 261: | ||
} | } | ||
- | for (int i = 0; i < NO_OS_ARRAY_SIZE(delays); i++) { | + | for (int i = 0; i < 2; i++) { |
enum max9611_delay_time dtime, dtime_new; | enum max9611_delay_time dtime, dtime_new; | ||
ret = max9611_get_delay(max9611_device, &dtime); | ret = max9611_get_delay(max9611_device, &dtime); | ||
Line 279: | Line 279: | ||
} | } | ||
- | for (int i = 0; i < NO_OS_ARRAY_SIZE(retries); i++) { | + | for (int i = 0; i < 2; i++) { |
enum max9611_retry_time rtime, rtime_new; | enum max9611_retry_time rtime, rtime_new; | ||
ret = max9611_get_retry(max9611_device, &rtime); | ret = max9611_get_retry(max9611_device, &rtime); |