Commit 3201f38d authored by Claes Sjofors's avatar Claes Sjofors

Report bugfix, value tag only worked for float

parent d62670c4
...@@ -601,6 +601,7 @@ int rt_report::replace_value( char *out, unsigned int size, ...@@ -601,6 +601,7 @@ int rt_report::replace_value( char *out, unsigned int size,
pwr_tUInt32 a_size; pwr_tUInt32 a_size;
pwr_tUInt32 a_offs; pwr_tUInt32 a_offs;
pwr_tUInt32 a_elem; pwr_tUInt32 a_elem;
pwr_eType a_type;
int flen; int flen;
char timstr[40]; char timstr[40];
...@@ -647,7 +648,8 @@ int rt_report::replace_value( char *out, unsigned int size, ...@@ -647,7 +648,8 @@ int rt_report::replace_value( char *out, unsigned int size,
if ( !value_found || !format_found) if ( !value_found || !format_found)
return 0; return 0;
sts = gdh_AttrValueToString( pwr_eType_Float32, a_tid, buf, fstr, a_type = (pwr_eType)pwr_TypeId( pwr_Tix(a_tid));
sts = gdh_AttrValueToString( a_type, a_tid, buf, fstr,
sizeof(fstr), &flen, format); sizeof(fstr), &flen, format);
if ( EVEN(sts)) return sts; if ( EVEN(sts)) return sts;
......
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