mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-01 02:41:48 +00:00
Fix Solenoid Resource object creation. Fixes artf4758.
Change-Id: I8b40d6606d7091fa6e8bf95b75f820e6b524ae06
This commit is contained in:
committed by
Peter Johnson
parent
bc0c895619
commit
ec69c6a866
@@ -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
|
||||
<< ")";
|
||||
|
||||
Reference in New Issue
Block a user