Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

various getopt & argc index check fixes #9589

Merged
merged 24 commits into from
Jun 4, 2018
Merged

Conversation

bkueng
Copy link
Member

@bkueng bkueng commented Jun 4, 2018

The following commands would all lead to a crash when called w/o argument:
bma180
bmi160
bmm150
bmp280
ets_airspeed
iridiumsbd
lis3mdl
lps22hb
mb12xx
mpu6000
mpu9250
ms4525_airspeed
ms5525_airspeed
ms5611
position_estimator_inav
pwm_input
sdp3x_airspeed
sf0x
teraranger
tfmini
sf1xx
srf02
test_ppm

This PR fixes all of these and switches from getopt to px4_getopt. In addition, there's a fix for a corner case in px4_getopt.

Fixes: #9532

@LorenzMeier
Copy link
Member

Awesome!

@LorenzMeier
Copy link
Member

@bkueng What is the testing level on these? Could you please boot a couple of boards and check the boot log for any abnormalities?

@bkueng
Copy link
Member Author

bkueng commented Jun 4, 2018

I compared the boot output against master on Pixracer, Pixhawk v2 and v5. It's exactly the same.

@LorenzMeier LorenzMeier merged commit d1a7a36 into master Jun 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fmu_v5 NSH some commands force an instant reboot
2 participants