Tools: correct array-out-of-bounds in PRU test

This commit is contained in:
Peter Barker 2015-07-10 09:16:10 +10:00 committed by Andrew Tridgell
parent dbbc5ed816
commit 818bb3f88f

View File

@ -85,7 +85,7 @@ int main (void)
usleep(5 * 1000);
// Load firmware
for(i = 0; i < sizeof(PRUcode); i++) {
for(i = 0; i < ARRAY_SIZE(PRUcode); i++) {
*(iram + i) = PRUcode[i];
}