l3gd20: fixed "l3gd20 test"

don't reset after test, and leave us in correct polling mode
This commit is contained in:
Andrew Tridgell 2015-02-11 16:22:31 +11:00 committed by Lorenz Meier
parent fc40a5c641
commit e0ac0c4a4b
1 changed files with 3 additions and 2 deletions

View File

@ -1234,11 +1234,12 @@ test()
warnx("gyro range: %8.4f rad/s (%d deg/s)", (double)g_report.range_rad_s,
(int)((g_report.range_rad_s / M_PI_F) * 180.0f + 0.5f));
if (ioctl(fd_gyro, SENSORIOCSPOLLRATE, SENSOR_POLLRATE_DEFAULT) < 0)
err(1, "reset to default polling");
close(fd_gyro);
/* XXX add poll-rate tests here too */
reset();
errx(0, "PASS");
}