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:
commit
f30d0a68d8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user