Commit 15f8ae8e authored by Sebastien Timmermans's avatar Sebastien Timmermans 🎹
Browse files

Merge branch 'Gen_user_file_compile_warning' into 'dev'

Gen user file compile warning

Closes #258

See merge request robotran/mbsysc!403
parents bab98dc8 75d527fd
......@@ -48,8 +48,7 @@ char* find_user_path(char* mbsfile) {
// Check if file is in dataR folder.
if (strcmp(ptr, "/dataR") == 0) {
*ptr = '\0';
sprintf(userpath, "%s/userfctR/", userpath);
strcat(userpath, "/userfctR/");
}
else {
printf("ERROR: the *.mbs file must be in the dataR folder. \n");
......
......@@ -308,9 +308,9 @@ void mbs_print_user_models(MbsInfos* mbs_infos, char *fileoutC, char *fileoutH)
switch (mbs_infos->user_models->user_model_list[i]->parameter_list[j]->type)
{
case 2: //vector
define_ind = 1;
case 5: // state
define_ind = 1;
break;
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment