libtunes: Separate the default tunes from tunes.cpp

This commit is contained in:
Simone Guscetti
2018-01-29 09:45:59 -05:00
committed by Daniel Agar
parent 6e712876a4
commit 915f728145
5 changed files with 102 additions and 51 deletions
+1 -1
View File
@@ -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 {