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
c4e76708
Commit
c4e76708
authored
Apr 20, 2004
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bell bit in EventFlags handled
parent
7c8331f2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
1 deletion
+29
-1
xtt/lib/xtt/src/xtt_evlist.cpp
xtt/lib/xtt/src/xtt_evlist.cpp
+28
-1
xtt/lib/xtt/src/xtt_evlist.h
xtt/lib/xtt/src/xtt_evlist.h
+1
-0
No files found.
xtt/lib/xtt/src/xtt_evlist.cpp
View file @
c4e76708
...
...
@@ -643,7 +643,7 @@ void EvList::beep( double scantime)
if
(
acc_beep_time
>=
beep_interval
)
acc_beep_time
=
0
;
sts
=
get_last_not_acked
(
&
id
);
sts
=
get_last_not_acked
_beep
(
&
id
);
if
(
ODD
(
sts
))
{
if
(
acc_beep_time
==
0
)
...
...
@@ -1153,6 +1153,33 @@ int EvList::get_last_not_acked( mh_sEventId **id)
return
0
;
}
int
EvList
::
get_last_not_acked_beep
(
mh_sEventId
**
id
)
{
int
i
;
brow_tObject
*
object_list
;
int
object_cnt
;
ItemAlarm
*
object_item
;
brow_GetObjectList
(
brow
->
ctx
,
&
object_list
,
&
object_cnt
);
for
(
i
=
0
;
i
<
object_cnt
;
i
++
)
{
brow_GetUserData
(
object_list
[
i
],
(
void
**
)
&
object_item
);
switch
(
object_item
->
type
)
{
case
evlist_eItemType_Alarm
:
if
(
object_item
->
status
&
mh_mEventStatus_NotAck
&&
object_item
->
eventflags
&
mh_mEventFlags_Bell
)
{
*
id
=
&
object_item
->
eventid
;
return
1
;
}
break
;
default:
;
}
}
return
0
;
}
int
EvList
::
get_last_not_acked_prio
(
mh_sEventId
**
id
,
unsigned
long
type
,
unsigned
long
prio
)
{
...
...
xtt/lib/xtt/src/xtt_evlist.h
View file @
c4e76708
...
...
@@ -149,6 +149,7 @@ class EvList {
void
event_return
(
mh_sReturn
*
msg
);
void
event_clear_alarmlist
(
pwr_tNodeIndex
nix
);
int
get_last_not_acked
(
mh_sEventId
**
id
);
int
get_last_not_acked_beep
(
mh_sEventId
**
id
);
int
id_to_item
(
mh_sEventId
*
id
,
void
**
item
);
void
ack
(
mh_sEventId
*
id
);
void
set_input_focus
();
...
...
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