1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-06-24 05:53:16 +00:00

avoid reading garbage

This commit is contained in:
Carles Fernandez 2015-05-24 20:41:30 +02:00
parent 75a09fc08f
commit 857e68ceca

View File

@ -935,11 +935,11 @@ void ControlThread::galileo_utc_model_data_collector()
void ControlThread::keyboard_listener()
{
bool read_keys = true;
char c;
char c = '0';
while(read_keys)
{
std::cin.get(c);
if (c =='q')
if (c == 'q')
{
std::cout << "Quit keystroke order received, stopping GNSS-SDR !!" << std::endl;
std::unique_ptr<ControlMessageFactory> cmf(new ControlMessageFactory());