aboutsummaryrefslogtreecommitdiffstats
path: root/src/TimestampDecoder.h
diff options
context:
space:
mode:
authorMatthias Braendli <matthias.braendli@u-blox.com>2015-06-02 12:25:40 +0200
committerMatthias Braendli <matthias.braendli@u-blox.com>2015-06-02 12:27:42 +0200
commite3cc55d32281be5dd7b7017d6dfed42be24d3cda (patch)
treec589cedc7bd1cabfdf1aee9a65f00037006e7c22 /src/TimestampDecoder.h
parent7eaba8024b95bb346247c828748d2292c226d19f (diff)
downloaddabmod-e3cc55d32281be5dd7b7017d6dfed42be24d3cda.tar.gz
dabmod-e3cc55d32281be5dd7b7017d6dfed42be24d3cda.tar.bz2
dabmod-e3cc55d32281be5dd7b7017d6dfed42be24d3cda.zip
Logging: use etiLog instead of stderr
Diffstat (limited to 'src/TimestampDecoder.h')
-rw-r--r--src/TimestampDecoder.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/TimestampDecoder.h b/src/TimestampDecoder.h
index 8c6b362..82753d1 100644
--- a/src/TimestampDecoder.h
+++ b/src/TimestampDecoder.h
@@ -113,9 +113,8 @@ class TimestampDecoder
{
public:
TimestampDecoder(
- struct modulator_offset_config& config,
- Logger& logger):
- myLogger(logger), modconfig(config)
+ struct modulator_offset_config& config) :
+ modconfig(config)
{
inhibit_second_update = 0;
time_pps = 0.0;
@@ -126,8 +125,8 @@ class TimestampDecoder
gmtime_r(0, &temp_time);
offset_changed = false;
- myLogger.level(info) << "Setting up timestamp decoder with " <<
- (modconfig.use_offset_fixed ? "fixed" :
+ etiLog.level(info) << "Setting up timestamp decoder with " <<
+ (modconfig.use_offset_fixed ? "fixed" :
(modconfig.use_offset_file ? "dynamic" : "none")) <<
" offset";
@@ -148,9 +147,6 @@ class TimestampDecoder
bool updateModulatorOffset();
protected:
- /* Main program logger */
- Logger& myLogger;
-
/* Push a new MNSC field into the decoder */
void pushMNSCData(int framephase, uint16_t mnsc);