Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Software for White Rabbit PTP Core
Commits
39739f7b
Commit
39739f7b
authored
Nov 26, 2019
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev/ad951x: don't print the ID, validate it instead
parent
fc5840f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
ad951x.c
dev/ad951x.c
+1
-2
No files found.
dev/ad951x.c
View file @
39739f7b
...
...
@@ -85,9 +85,8 @@ int ad951x_init(struct ad951x_device *dev, struct spi_bus *spi, struct gpio_pin
ad951x_write
(
dev
,
0x232
,
0x01
);
// commit
uint8_t
id
=
ad951x_read
(
dev
,
0x3
);
pp_printf
(
"AD9516 ID: 0x%02x
\n
"
,
id
);
return
0
;
return
id
==
0xc3
?
0
:
-
1
;
}
...
...
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