Commit d9245c13 authored by Claes Sjofors's avatar Claes Sjofors

OtherIO OneWire Family attribute changed to hex

parent db107ed1
......@@ -62,7 +62,7 @@ static pwr_tStatus IoCardInit( io_tCtx ctx,
local = (io_sLocalDS18B20 *) calloc( 1, sizeof(io_sLocalDS18B20));
cp->Local = local;
sprintf( name, "%d-%012x", op->Family, op->Super.Address);
sprintf( name, "%x-%012x", op->Family, op->Super.Address);
sprintf( fname, "/sys/bus/w1/devices/w1 bus master/%s/w1_slave", name);
local->value_fp = fopen( fname, "r");
if (!local->value_fp) {
......
......@@ -68,7 +68,7 @@ static pwr_tStatus IoCardInit( io_tCtx ctx,
local = (io_sLocalAoDevice *) calloc( 1, sizeof(io_sLocalAoDevice));
cp->Local = local;
sprintf( name, "%d-%012x", op->Family, op->Super.Address);
sprintf( name, "%x-%012x", op->Family, op->Super.Address);
name_len = strlen(name);
strncpy( fname, op->DataFile, sizeof(fname));
......
......@@ -4821,6 +4821,12 @@ Volume OtherIO $ClassVolume 0.0.250.10
Attr TypeRef = "pwrs:Type-$Status"
EndBody
EndObject
!/**
! Family code.
!
! Note! The family code is usually presented with a hexadecimal value
! but should here be entered as a decimal value.
!*/
Object Family $Attribute 22 06-JUN-2010 13:56:28.16
Body SysBody 06-JUN-2010 13:56:08.04
Attr PgmName = "Family"
......@@ -4880,7 +4886,7 @@ Volume OtherIO $ClassVolume 0.0.250.10
Attr Super.ErrorSoftLimit = 50
Attr Super.ErrorHardLimit = 100
Attr Super.MaxNoOfChannels = 1
Attr Family = 28
Attr Family = 40
Attr Resolution = 12
Attr ChAi.ConversionOn = 1
Attr ChAi.ScanInterval = 1
......@@ -4923,6 +4929,12 @@ Volume OtherIO $ClassVolume 0.0.250.10
Attr TypeRef = "pwrs:Type-$Status"
EndBody
EndObject
!/**
! Family code.
!
! Note! The family code is usually presented with a hexadecimal value
! but should here be entered as a decimal value.
!*/
Object Family $Attribute 26 08-JUN-2011 14:01:02.86
Body SysBody 08-JUN-2011 14:01:02.86
Attr PgmName = "Family"
......@@ -5045,6 +5057,12 @@ Volume OtherIO $ClassVolume 0.0.250.10
Attr TypeRef = "pwrs:Type-$Status"
EndBody
EndObject
!/**
! Family code.
!
! Note! The family code is usually presented with a hexadecimal value
! but should here be entered as a decimal value.
!*/
Object Family $Attribute 35 01-NOV-2011 13:31:33.55
Body SysBody 01-NOV-2011 13:31:33.55
Attr PgmName = "Family"
......
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