Change uint to int for channels on constructors which can take a single channel or single pointer to avoid ambiguous calls.

Change-Id: Id56f611675bf4dee8d31e152c4ee30112d07aac4
This commit is contained in:
Kevin O'Connor
2014-11-19 11:40:43 -05:00
parent c7a90b2ccc
commit 867e4080dc
8 changed files with 12 additions and 12 deletions

View File

@@ -82,7 +82,7 @@ Counter::Counter(DigitalSource &source) :
*
* The counter will start counting immediately.
*/
Counter::Counter(uint32_t channel) :
Counter::Counter(int32_t channel) :
m_upSource(NULL),
m_downSource(NULL),
m_counter(NULL)
@@ -177,7 +177,7 @@ Counter::~Counter()
/**
* Set the upsource for the counter as a digital input channel.
*/
void Counter::SetUpSource(uint32_t channel)
void Counter::SetUpSource(int32_t channel)
{
if (StatusIsFatal()) return;
SetUpSource(new DigitalInput(channel));
@@ -278,7 +278,7 @@ void Counter::ClearUpSource()
/**
* Set the down counting source to be a digital input channel.
*/
void Counter::SetDownSource(uint32_t channel)
void Counter::SetDownSource(int32_t channel)
{
if (StatusIsFatal()) return;
SetDownSource(new DigitalInput(channel));