1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #10305 from jia200x/pr/fix_my9221_test

tests/driver_my9221: fix for loop indexes
This commit is contained in:
Cenk Gündoğan 2018-10-31 11:59:14 +01:00 committed by GitHub
commit f30d0a68d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,7 +51,8 @@ int main(void)
my9221_set_led(&dev, i, MY9221_LED_OFF);
}
xtimer_usleep(TEST_WAIT);
for (unsigned i=dev.params.leds; i > 0 ; --i) {
for (unsigned j=dev.params.leds; j > 0 ; --j) {
unsigned i = j-1;
my9221_set_led(&dev, i, MY9221_LED_ON);
xtimer_usleep(TEST_WAIT);
my9221_set_led(&dev, i, MY9221_LED_OFF);