1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

tests/driver_my9221: fix for loop indexes

This commit is contained in:
Jose Alamos 2018-10-30 23:43:24 +01:00 committed by José Ignacio Alamos Aste
parent 99ae495226
commit b543f2dc67

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