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
d16cabc4
Commit
d16cabc4
authored
Feb 06, 2014
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PSS9000 Pi card, fix for counter value rolling over
parent
ca0c20e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ssabox/lib/rt/src/os_linux/rt_io_m_co_pi24bo.c
ssabox/lib/rt/src/os_linux/rt_io_m_co_pi24bo.c
+3
-3
No files found.
ssabox/lib/rt/src/os_linux/rt_io_m_co_pi24bo.c
View file @
d16cabc4
...
...
@@ -309,7 +309,7 @@ static pwr_tStatus IoCardRead (
sts2
=
read
(
local
->
Qbus_fp
,
&
rb
,
sizeof
(
rb
));
val
=
(
unsigned
short
)
rb
.
Data
;
for
(
j
=
0
;
j
<
3
;
j
++
)
{
for
(
j
=
0
;
j
<
5
;
j
++
)
{
rb
.
Address
-=
2
;
sts1
=
read
(
local
->
Qbus_fp
,
&
rb
,
sizeof
(
rb
));
re_data
[
0
]
=
(
unsigned
short
)
rb
.
Data
;
...
...
@@ -318,13 +318,13 @@ static pwr_tStatus IoCardRead (
sts2
=
read
(
local
->
Qbus_fp
,
&
rb
,
sizeof
(
rb
));
re_data
[
1
]
=
(
unsigned
short
)
rb
.
Data
;
if
(
val
==
re_data
[
1
])
if
(
val
==
re_data
[
1
]
&&
val
!=
0x0100
)
break
;
/* First and second didn't match, try again */
val
=
re_data
[
1
];
}
if
(
val
!=
re_data
[
1
])
if
(
val
!=
re_data
[
1
]
||
val
==
0x0100
)
continue
;
}
}
...
...
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