[Pkg-running-devel] [antpm] 03/48: AntFr310XT: allow passing the Serial implementation from the outside
Kristof Ralovich
ralovich-guest at moszumanska.debian.org
Mon Aug 11 10:10:30 UTC 2014
This is an automated email from the git hooks/post-receive script.
ralovich-guest pushed a commit to branch upstream
in repository antpm.
commit f8dad99fd2c79a4b8180d572aced5e3db3c2e0d4
Author: RALOVICH, Kristof <tade60 at freemail.hu>
Date: Tue Mar 18 00:37:44 2014 +0100
AntFr310XT: allow passing the Serial implementation from the outside
---
src/AntFr310XT.cpp | 4 ++--
src/AntFr310XT.hpp | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/AntFr310XT.cpp b/src/AntFr310XT.cpp
index aa9ef99..576f5d8 100644
--- a/src/AntFr310XT.cpp
+++ b/src/AntFr310XT.cpp
@@ -76,9 +76,9 @@ struct AntFr310XT_EventLoop
void* rv;
};
-AntFr310XT::AntFr310XT(bool eventLoopInBgTh)
+AntFr310XT::AntFr310XT(bool eventLoopInBgTh, Serial *s)
//: m_serial(new ANTPM_SERIAL_IMPL())
- : m_serial(Serial::instantiate())
+ : m_serial(s?s:Serial::instantiate())
, m_antMessenger(new AntMessenger(eventLoopInBgTh))
, state(ST_ANTFS_0)
, m_eventThKill(0)
diff --git a/src/AntFr310XT.hpp b/src/AntFr310XT.hpp
index 308d3e6..cf3c8b9 100644
--- a/src/AntFr310XT.hpp
+++ b/src/AntFr310XT.hpp
@@ -33,7 +33,7 @@ struct AntFr310XT_EventLoop;
class AntFr310XT: public AntCallback
{
public:
- AntFr310XT(bool eventLoopInBgTh = true);
+ AntFr310XT(bool eventLoopInBgTh = true, Serial* s = NULL);
virtual ~AntFr310XT();
void setModeForcePairing() { doPairing=true; }
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-running/antpm.git
More information about the Pkg-running-devel
mailing list