Merge pull request #9797 from gschorcht/tests_driver_isl29125_fix

tests/driver_isl29125: fix of compilation error
This commit is contained in:
Martine Lenders 2018-08-21 11:18:00 +02:00 committed by GitHub
commit ead6c1fd00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);