rearranged banner output and messages

This commit is contained in:
iceman1001 2019-04-16 17:26:15 +02:00
commit 2639de23c6
2 changed files with 11 additions and 12 deletions

View file

@ -420,6 +420,12 @@ int main(int argc, char *argv[]) {
return 1;
}
// ascii art
bool stdinOnPipe = !isatty(STDIN_FILENO);
if (!script_cmds_file && !stdinOnPipe)
showBanner();
// default speed for USB 460800, USART(FPC serial) 115200 baud
if (speed == 0)
#ifdef WITH_FPC_HOST
@ -454,11 +460,6 @@ int main(int argc, char *argv[]) {
}
}
// ascii art
bool stdinOnPipe = !isatty(STDIN_FILENO);
if (!script_cmds_file && !stdinOnPipe)
showBanner();
// set global variables
set_my_executable_path();