Skip to content
Snippets Groups Projects
Commit 7b8ef9e1 authored by Gunar Schorcht's avatar Gunar Schorcht
Browse files

tests/driver_isl29125: fix of compilation error

parent ad173831
No related branches found
No related tags found
No related merge requests found
......@@ -76,7 +76,7 @@ int main(void)
"ISL29125_MODE_R", "ISL29125_MODE_G", "ISL29125_MODE_B",
"ISL29125_MODE_RG", "ISL29125_MODE_GB"};
for (size_t i = 0; i < sizeof(modes); i++) {
for (size_t i = 0; i < sizeof(modes) / sizeof(modes[0]); i++) {
printf("Setting mode %s\n", mode_names[i]);
isl29125_set_mode(&dev, modes[i]);
xtimer_usleep(SLEEP);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment