Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
bb5be3fd
Commit
bb5be3fd
authored
Jun 25, 2008
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Status messaged instead of 'gdh error'
parent
2db472b7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
src/lib/rt/src/rt_rtt_functions.h
src/lib/rt/src/rt_rtt_functions.h
+2
-1
src/lib/rt/src/rt_rtt_menu.c
src/lib/rt/src/rt_rtt_menu.c
+12
-3
No files found.
src/lib/rt/src/rt_rtt_functions.h
View file @
bb5be3fd
/*
* 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
,
...
...
src/lib/rt/src/rt_rtt_menu.c
View file @
bb5be3fd
/*
* Proview $Id: rt_rtt_menu.c,v 1.1
3 2008-06-24 07:39:57
claes Exp $
* Proview $Id: rt_rtt_menu.c,v 1.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
...
...
@@ -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
;
}
/*************************************************************************
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment