From 9f456975649ff41b7defb10fe58eac2242ab32fe Mon Sep 17 00:00:00 2001 From: Paul Dino Jones Date: Wed, 4 Sep 2024 16:22:36 -0400 Subject: [PATCH] Put default configs closer to the bottom --- src/monocoque/helper/confighelper.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/monocoque/helper/confighelper.c b/src/monocoque/helper/confighelper.c index f9a92c6..2af18a1 100644 --- a/src/monocoque/helper/confighelper.c +++ b/src/monocoque/helper/confighelper.c @@ -197,7 +197,7 @@ int getconfigtouse(const char* config_file_str, char* car, int sim) { return 0; } - int confignum = 0; + int confignum = configs-1; slogt("Multiple configs found"); for (j = 0; j < configs; j++) { @@ -223,7 +223,10 @@ int getconfigtouse(const char* config_file_str, char* car, int sim) slogt("matched default car"); confignum = j; } - break; + if(confignum