mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-06 07:41:35 +08:00
Crank up the test speed for 'px4io iftest 1'
This commit is contained in:
@@ -303,7 +303,7 @@ PX4IO_serial::test(unsigned mode)
|
|||||||
if (set_reg(PX4IO_PAGE_TEST, PX4IO_P_TEST_LED, &value, 1) != 0)
|
if (set_reg(PX4IO_PAGE_TEST, PX4IO_P_TEST_LED, &value, 1) != 0)
|
||||||
fails++;
|
fails++;
|
||||||
|
|
||||||
if (count >= 1000) {
|
if (count >= 5000) {
|
||||||
lowsyslog("==== test 1 : %u failures ====\n", fails);
|
lowsyslog("==== test 1 : %u failures ====\n", fails);
|
||||||
perf_print_counter(_pc_txns);
|
perf_print_counter(_pc_txns);
|
||||||
perf_print_counter(_pc_dmasetup);
|
perf_print_counter(_pc_dmasetup);
|
||||||
@@ -317,7 +317,6 @@ PX4IO_serial::test(unsigned mode)
|
|||||||
perf_print_counter(_pc_badidle);
|
perf_print_counter(_pc_badidle);
|
||||||
count = 0;
|
count = 0;
|
||||||
}
|
}
|
||||||
usleep(1000);
|
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user