Skip to content

Commit

Permalink
unify input logic for parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Didosa committed Dec 11, 2023
1 parent ddc4ed7 commit a9d92fa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions PiLotTilesDownloader/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,7 @@ private static void AskRandomMode() {
Boolean valid = false;
while (!valid) {
Console.Write("Please select the mode. 1: serial, 2: random. ");
String input = (Console.ReadKey().KeyChar).ToString().ToLower();
Console.WriteLine();
String input = Console.ReadLine().ToLower();
Program.randomMode = input == "2";
Boolean serialMode = input == "1";
valid = Program.randomMode || serialMode;
Expand Down

0 comments on commit a9d92fa

Please sign in to comment.