Commit bb48c2ce authored by Jussi Lindgren's avatar Jussi Lindgren

Drivers: Fixed Generic Oscillator overriding channel names

parent 5462764c
......@@ -66,12 +66,14 @@ boolean CDriverGenericOscillator::initialize(
return false;
}
for(uint32 i=0;i<m_oHeader.getChannelCount();i++)
for (uint32 i = 0; i < m_oHeader.getChannelCount(); i++)
{
std::stringstream ss; ss << "Oscillator " << (i+1);
m_oHeader.setChannelUnits(i, OVTK_UNIT_Volts, OVTK_FACTOR_Base);
m_oHeader.setChannelName(i, ss.str().c_str());
if (CString(m_oHeader.getChannelName(i)) == CString(""))
{
std::stringstream ss; ss << "Oscillator " << (i + 1);
m_oHeader.setChannelName(i, ss.str().c_str());
}
}
m_pSample=new float32[m_oHeader.getChannelCount()*ui32SampleCountPerSentBlock];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment