Commit bb5be3fd authored by claes's avatar claes

Status messaged instead of 'gdh error'

parent 2db472b7
/*
* Proview $Id: rt_rtt_functions.h,v 1.3 2008-06-24 07:39:57 claes Exp $
* Proview $Id: rt_rtt_functions.h,v 1.4 2008-06-25 07:50:14 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -266,6 +266,7 @@ int rtt_exit( int ctx, pwr_tObjid argoi, void *arg1, void *arg2,
void *arg3, void *arg4);
int rtt_message( char severity,
char *message);
int rtt_message_sts( int sts);
int rtt_help(
menu_ctx parent_ctx,
char *subject,
......
/*
* Proview $Id: rt_rtt_menu.c,v 1.13 2008-06-24 07:39:57 claes Exp $
* Proview $Id: rt_rtt_menu.c,v 1.14 2008-06-25 07:50:14 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -72,6 +72,7 @@
#include "co_dcli.h"
#include "co_time.h"
#include "co_syi.h"
#include "co_msg.h"
#include "co_api_user.h"
#include "rt_gdh.h"
#include "rt_gdh_msg.h"
......@@ -7747,13 +7748,13 @@ static int rtt_set_value(
&attrref.Objid.vid, &attrref.Objid.oix,
&attrref.Offset, &attrref.Size);
sts = gdh_SetObjectInfoAttrref( &attrref, buffer_ptr, size);
if ( EVEN(sts)) rtt_message('E',"gdh error");
if ( EVEN(sts)) rtt_message_sts( sts);
}
else
{
sts = gdh_SetObjectInfo ( menu_ptr->parameter_name,
buffer_ptr, size);
if ( EVEN(sts)) rtt_message('E',"gdh error");
if ( EVEN(sts)) rtt_message_sts( sts);
}
}
else
......@@ -7897,6 +7898,14 @@ int rtt_message( char severity,
return RTT__SUCCESS;
}
int rtt_message_sts( int sts)
{
char msg[256];
msg_GetMsg( sts, msg, sizeof(msg));
r_print( "%s", msg);
return RTT__SUCCESS;
}
/*************************************************************************
*
......
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