mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-08-02 01:02:56 +00:00
avoid reading garbage
This commit is contained in:
parent
75a09fc08f
commit
857e68ceca
@ -935,11 +935,11 @@ void ControlThread::galileo_utc_model_data_collector()
|
|||||||
void ControlThread::keyboard_listener()
|
void ControlThread::keyboard_listener()
|
||||||
{
|
{
|
||||||
bool read_keys = true;
|
bool read_keys = true;
|
||||||
char c;
|
char c = '0';
|
||||||
while(read_keys)
|
while(read_keys)
|
||||||
{
|
{
|
||||||
std::cin.get(c);
|
std::cin.get(c);
|
||||||
if (c =='q')
|
if (c == 'q')
|
||||||
{
|
{
|
||||||
std::cout << "Quit keystroke order received, stopping GNSS-SDR !!" << std::endl;
|
std::cout << "Quit keystroke order received, stopping GNSS-SDR !!" << std::endl;
|
||||||
std::unique_ptr<ControlMessageFactory> cmf(new ControlMessageFactory());
|
std::unique_ptr<ControlMessageFactory> cmf(new ControlMessageFactory());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user