Skip to content

Commit

Permalink
Tabs to spaces, indent 4
Browse files Browse the repository at this point in the history
  • Loading branch information
terrillmoore committed Nov 22, 2021
1 parent 2026ec9 commit 2b29527
Showing 1 changed file with 40 additions and 40 deletions.
80 changes: 40 additions & 40 deletions src/lib/CatenaBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
Module: CatenaBase.cpp
Function:
Implemenation of class CatenaBase;
Implemenation of class CatenaBase;
Copyright notice:
See accompanying LICENSE file.
See accompanying LICENSE file.
Author:
Terry Moore, MCCI Corporation March 2017
Terry Moore, MCCI Corporation March 2017
*/

Expand All @@ -24,62 +24,62 @@ CatenaBase *CatenaBase::pCatenaBase;

/* the constructor */
CatenaBase::CatenaBase(Version_t v)
{
this->m_appVersion = v;
pCatenaBase = this;
}
{
this->m_appVersion = v;
pCatenaBase = this;
}

/* begin operating */
bool
CatenaBase::begin(void)
{
UniqueID_buffer_t CpuID;
{
UniqueID_buffer_t CpuID;

// use default debug flags
gLog.begin();
// use default debug flags
gLog.begin();

this->m_PollingEngine.begin();
this->m_PollingEngine.begin();

/* get the CPU ID */
this->GetUniqueID(&CpuID);
this->m_pPlatform = this->GetPlatformForID(
&CpuID,
&this->m_SysEUI,
&this->m_OperatingFlags
);
/* get the CPU ID */
this->GetUniqueID(&CpuID);
this->m_pPlatform = this->GetPlatformForID(
&CpuID,
&this->m_SysEUI,
&this->m_OperatingFlags
);

// set up the command line collector
this->m_Collector.begin(&Serial, &this->m_SerialReady);
this->registerObject(&this->m_Collector);
// set up the command line collector
this->m_Collector.begin(&Serial, &this->m_SerialReady);
this->registerObject(&this->m_Collector);

// set up the command line processor
this->m_CommandStream.begin(&this->m_Collector, this);
// set up the command line processor
this->m_CommandStream.begin(&this->m_Collector, this);

return true;
}
return true;
}

/* register a pollable object with the polling engine */
void
CatenaBase::registerObject(
McciCatena::cPollableObject *pObject
)
{
this->m_PollingEngine.registerObject(pObject);
}
McciCatena::cPollableObject *pObject
)
{
this->m_PollingEngine.registerObject(pObject);
}

/* poll all the registered objects */
void
CatenaBase::poll()
{
this->m_PollingEngine.poll();
}
{
this->m_PollingEngine.poll();
}

/* add a number of commands to the command table */
void
CatenaBase::addCommands(
cCommandStream::cDispatch &dispatch,
void *pContext
)
{
this->m_CommandStream.registerCommands(&dispatch, pContext);
}
cCommandStream::cDispatch &dispatch,
void *pContext
)
{
this->m_CommandStream.registerCommands(&dispatch, pContext);
}

0 comments on commit 2b29527

Please sign in to comment.