Skip to content

Commit

Permalink
Remove setting the stdio file handle to nonblocking
Browse files Browse the repository at this point in the history
  • Loading branch information
multiplemonomials committed Apr 5, 2024
1 parent 4b811f8 commit 9000130
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions GNSSDemo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,7 @@ void GNSSDemo::test_HUD()

bargraph.setHeights(heights);
bargraph.setLabels(&labels[0][0]);

FileHandle *stdin_fh = mbed_file_handle(STDIN_FILENO);
stdin_fh->set_blocking(false);


while(!stdin_fh->readable()) // exit when the user types a char
{
while(updateTimer.elapsed_time() < UPDATE_RATE)
Expand Down Expand Up @@ -170,8 +167,6 @@ void GNSSDemo::test_HUD()
bargraph.setNumCols(currentIndex);
bargraph.print();
}

stdin_fh->set_blocking(true);
}

void GNSSDemo::hotStartTest()
Expand Down

0 comments on commit 9000130

Please sign in to comment.