Commit 1f8fd465 authored by claes's avatar claes

gdh_ArefDisabled didn't work for remote objects

parent bbaed58b
/*
* Proview $Id: rt_gdh.c,v 1.24 2006-01-13 16:32:39 claes Exp $
* Proview $Id: rt_gdh.c,v 1.25 2006-02-09 14:29:56 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -3601,13 +3601,10 @@ pwr_tStatus gdh_ArefDisabled( pwr_sAttrRef *arp,
pwr_tDisableAttr *disabled)
{
pwr_tStatus sts;
pwr_sAttrRef daref;
gdh_ScopeLock {
*disabled = vol_ArefDisabled( &sts, arp);
} gdh_ScopeUnlock;
daref = cdh_ArefToDisableAref( arp);
sts = gdh_GetObjectInfoAttrref( &daref, disabled, sizeof(*disabled));
return sts;
}
......
/*
* Proview $Id: rt_vol.c,v 1.8 2006-02-09 13:42:02 claes Exp $
* Proview $Id: rt_vol.c,v 1.9 2006-02-09 14:29:56 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -1634,6 +1634,9 @@ vol_UpdateAlarm (
}
//
// Get DisableAttr value on local object
//
pwr_tDisableAttr
vol_ArefDisabled (
pwr_tStatus *sts,
......@@ -1650,7 +1653,7 @@ vol_ArefDisabled (
gdb_AssumeLocked;
daref = cdh_ArefToDisableAref( arp);
ap = vol_ArefToAttribute(sts, &attribute, &daref, gdb_mLo_global, vol_mTrans_all);
ap = vol_ArefToAttribute(sts, &attribute, &daref, gdb_mLo_native, vol_mTrans_none);
if (ap == NULL) return pwr_cNDisableAttr;
p = vol_AttributeToAddress(sts, ap);
......
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