Commit ff49e34c authored by claes's avatar claes

Address displayed in decimal form

parent a4cce3f2
/* /*
* Proview $Id: xtt_xnav_tables.cpp,v 1.15 2007-01-24 12:45:23 claes Exp $ * Proview $Id: xtt_xnav_tables.cpp,v 1.16 2008-01-24 09:40:04 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB. * Copyright (C) 2005 SSAB Oxelsund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -778,7 +778,7 @@ int XNav::show_device() ...@@ -778,7 +778,7 @@ int XNav::show_device()
strcpy( th.title[th.table_cnt++], "ErrorCount"); strcpy( th.title[th.table_cnt++], "ErrorCount");
strcpy( th.title[th.table_cnt++], "Process"); strcpy( th.title[th.table_cnt++], "Process");
strcpy( th.title[th.table_cnt++], "PlcThread"); strcpy( th.title[th.table_cnt++], "PlcThread");
strcpy( th.title[th.table_cnt++], "Address (oct)"); strcpy( th.title[th.table_cnt++], "Address");
new ItemTableHeader( brow, this, "Title", &th, NULL, flow_eDest_IntoLast); new ItemTableHeader( brow, this, "Title", &th, NULL, flow_eDest_IntoLast);
// Get the rack objects // Get the rack objects
...@@ -874,7 +874,7 @@ int XNav::show_device() ...@@ -874,7 +874,7 @@ int XNav::show_device()
sts = gdh_GetObjectInfo( attr_name, sts = gdh_GetObjectInfo( attr_name,
(void *) &address, sizeof(address)); (void *) &address, sizeof(address));
if ( ODD(sts)) if ( ODD(sts))
sprintf( t.elem[t.elem_cnt].fix_str, "%o", address); sprintf( t.elem[t.elem_cnt].fix_str, "%d", address);
else else
strcpy( t.elem[t.elem_cnt].fix_str, "-"); strcpy( t.elem[t.elem_cnt].fix_str, "-");
t.elem[t.elem_cnt++].type_id = xnav_eType_FixStr; t.elem[t.elem_cnt++].type_id = xnav_eType_FixStr;
......
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