Skip to content

Commit

Permalink
Modified start up to request input after title is printed
Browse files Browse the repository at this point in the history
  • Loading branch information
RadioSam committed Aug 11, 2023
1 parent 17c6122 commit 366650d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions serdog/consolehelper.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ void printStartScreen()
{
printf("\nWelcome to RadioDoge! Press ENTER to continue...");
getchar();
printf("\n\n");
}

int getModeSelection()
Expand Down
7 changes: 4 additions & 3 deletions serdog/serdog.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ int openPort()
USB = open(device, O_RDWR | O_NOCTTY); //should be nonblock for polling
if (USB == -1)
{
fprintf(stderr, "Unable to open %s: error= %s\n\n", device, strerror(errno));
fprintf(stderr, "Unable to open %s: error= %s\n", device, strerror(errno));
printf("Please double check that the hardware is connected and restart the program!\n\n");
exit(EXIT_FAILURE);
}
else
Expand Down Expand Up @@ -1792,7 +1793,8 @@ void loadDemoPairFileHelper(int pairIndex)
int main()
{
printTextArtFile("asciiDoge.txt");
printf("\n\nWelcome to RadioDoge!\n\n");
printf("\n\n");
printStartScreen();
printf("Performing startup functions...\n");
// Start by attempting to setup serial communication
USB = 0; // File descriptor set to zero.
Expand Down Expand Up @@ -1825,7 +1827,6 @@ int main()
}
printf("Libdogecoin initialization complete!\n");

printStartScreen();
createTestDogeAddress(loadedDogeAddress, generatedPrivateKey); // Initial test address
if (demoMode)
{
Expand Down

0 comments on commit 366650d

Please sign in to comment.