Fix Solenoid Resource object creation. Fixes artf4758.

Change-Id: I8b40d6606d7091fa6e8bf95b75f820e6b524ae06
This commit is contained in:
Kevin O'Connor
2015-12-14 13:45:56 -05:00
committed by Peter Johnson
parent bc0c895619
commit ec69c6a866
3 changed files with 4 additions and 7 deletions

View File

@@ -10,10 +10,6 @@
#include <sstream>
std::unique_ptr<Resource> SolenoidBase::m_allocated =
std::make_unique<Resource>(solenoid_kNumDO7_0Elements *
kSolenoidChannels);
/**
* Constructor.
* Uses the default PCM ID of 0
@@ -52,7 +48,7 @@ DoubleSolenoid::DoubleSolenoid(uint8_t moduleNumber, uint32_t forwardChannel,
return;
}
Resource::CreateResourceObject(
m_allocated, solenoid_kNumDO7_0Elements * kSolenoidChannels);
m_allocated, m_maxModules * m_maxPorts);
buf << "Solenoid " << m_forwardChannel << " (Module: " << m_moduleNumber
<< ")";