fixed wrong app type used when client is acknowledging an alarm

This commit is contained in:
Jeff Hill
2006-10-02 15:53:52 +00:00
parent ad55de7aa4
commit 7001736104

View File

@@ -2047,13 +2047,12 @@ caStatus casStrmClient::writeScalarData ()
if ( type == aitEnumInvalid ) {
return S_cas_badType;
}
aitEnum bestExternalType = this->ctx.getPV()->bestExternalType ();
gdd * pDD = new gddScalar ( gddAppType_value, bestExternalType );
if ( ! pDD ) {
return S_cas_noMemory;
}
aitUint16 app = gddDbrToAit[pHdr->m_dataType].app;
gdd * pDD = new gddScalar ( app, bestExternalType );
if ( ! pDD ) {
return S_cas_noMemory;
}
//
// copy in, and convert to native type, the incoming data