[hamradio-commits] [gnss-sdr] 143/251: avoid reading garbage
Carles Fernandez
carles_fernandez-guest at moszumanska.debian.org
Wed Sep 2 00:22:44 UTC 2015
This is an automated email from the git hooks/post-receive script.
carles_fernandez-guest pushed a commit to branch master
in repository gnss-sdr.
commit 857e68ceca25f032263317dba93cee5aa5298e41
Author: Carles Fernandez <carles.fernandez at gmail.com>
Date: Sun May 24 20:41:30 2015 +0200
avoid reading garbage
---
src/core/receiver/control_thread.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/core/receiver/control_thread.cc b/src/core/receiver/control_thread.cc
index 58e8781..d13922e 100644
--- a/src/core/receiver/control_thread.cc
+++ b/src/core/receiver/control_thread.cc
@@ -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());
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/gnss-sdr.git
More information about the pkg-hamradio-commits
mailing list