mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 04:33:34 +08:00
libtunes: Separate the default tunes from tunes.cpp
This commit is contained in:
committed by
Daniel Agar
parent
6e712876a4
commit
915f728145
@@ -121,7 +121,7 @@ tune_control_main(int argc, char *argv[])
|
||||
case 't':
|
||||
value = (uint8_t)(strtol(myoptarg, NULL, 0));
|
||||
|
||||
if (value >= 1 && value <= 15) {
|
||||
if (value > 0 && value < tunes.get_default_tunes_size()) {
|
||||
tune_control.tune_id = value;
|
||||
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user