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:
parent
99ae495226
commit
b543f2dc67
@ -51,7 +51,8 @@ int main(void)
|
|||||||
my9221_set_led(&dev, i, MY9221_LED_OFF);
|
my9221_set_led(&dev, i, MY9221_LED_OFF);
|
||||||
}
|
}
|
||||||
xtimer_usleep(TEST_WAIT);
|
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);
|
my9221_set_led(&dev, i, MY9221_LED_ON);
|
||||||
xtimer_usleep(TEST_WAIT);
|
xtimer_usleep(TEST_WAIT);
|
||||||
my9221_set_led(&dev, i, MY9221_LED_OFF);
|
my9221_set_led(&dev, i, MY9221_LED_OFF);
|
||||||
|
Loading…
Reference in New Issue
Block a user