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
4
Merge Requests
4
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
b314bab7
Commit
b314bab7
authored
Mar 07, 2012
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrc_main: removed not supported mprintf formatting
parent
15d4441d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
wrc_main.c
wrc_main.c
+2
-2
No files found.
wrc_main.c
View file @
b314bab7
...
...
@@ -163,7 +163,7 @@ void wrc_initialize()
//Generate MAC address
ow_init
();
if
(
ds18x_read_serial
(
ds18_id
)
==
0
)
mprintf
(
"Found DS18xx sensor: %
02x:%02x:%02x:%02x:%02x:%02x:%02x:%02
x
\n
"
,
mprintf
(
"Found DS18xx sensor: %
x:%x:%x:%x:%x:%x:%x:%
x
\n
"
,
ds18_id
[
7
],
ds18_id
[
6
],
ds18_id
[
5
],
ds18_id
[
4
],
ds18_id
[
3
],
ds18_id
[
2
],
ds18_id
[
1
],
ds18_id
[
0
]);
else
...
...
@@ -176,7 +176,7 @@ void wrc_initialize()
mac_addr
[
4
]
=
ds18_id
[
2
];
// APPLICATION NOTE 186
mac_addr
[
5
]
=
ds18_id
[
1
];
// Creating Global Identifiers Using 1-Wire® Devices
mprintf
(
"wr_core: local MAC address: %
02x:%02x:%02x:%02x:%02x:%02
x
\n
"
,
mac_addr
[
0
],
mac_addr
[
1
],
mac_addr
[
2
],
mac_addr
[
3
],
mac_addr
[
4
],
mac_addr
[
5
]);
mprintf
(
"wr_core: local MAC address: %
x:%x:%x:%x:%x:%
x
\n
"
,
mac_addr
[
0
],
mac_addr
[
1
],
mac_addr
[
2
],
mac_addr
[
3
],
mac_addr
[
4
],
mac_addr
[
5
]);
ep_init
(
mac_addr
);
ep_enable
(
1
,
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