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
461f5911
Commit
461f5911
authored
Oct 20, 2012
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
warnings: trivial fix for dev/onewire.c
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
007eb11a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
onewire.c
dev/onewire.c
+6
-2
No files found.
dev/onewire.c
View file @
461f5911
#include <string.h>
#include <wrc.h>
#include "onewire.h"
#include "onewire.h"
#include "../sockitowm/ownet.h"
#include "../sockitowm/ownet.h"
#include "../sockitowm/findtype.h"
#include "../sockitowm/findtype.h"
#include "../sockitowm/eep43.h"
#include "../sockitowm/temp28.h"
#define DEBUG_PMAC 0
#define DEBUG_PMAC 0
...
@@ -72,7 +76,7 @@ int8_t get_persistent_mac(uint8_t portnum, uint8_t * mac)
...
@@ -72,7 +76,7 @@ int8_t get_persistent_mac(uint8_t portnum, uint8_t * mac)
if
(
FamilySN
[
i
][
0
]
==
0x43
)
{
if
(
FamilySN
[
i
][
0
]
==
0x43
)
{
owLevel
(
portnum
,
MODE_NORMAL
);
owLevel
(
portnum
,
MODE_NORMAL
);
if
(
ReadMem43
(
portnum
,
FamilySN
[
i
],
EEPROM_MAC_PAGE
,
if
(
ReadMem43
(
portnum
,
FamilySN
[
i
],
EEPROM_MAC_PAGE
,
&
read_buffer
)
==
TRUE
)
{
read_buffer
)
==
TRUE
)
{
if
(
read_buffer
[
0
]
==
0
&&
read_buffer
[
1
]
==
0
if
(
read_buffer
[
0
]
==
0
&&
read_buffer
[
1
]
==
0
&&
read_buffer
[
2
]
==
0
)
{
&&
read_buffer
[
2
]
==
0
)
{
/* Skip the EEPROM since it has not been programmed! */
/* Skip the EEPROM since it has not been programmed! */
...
@@ -116,7 +120,7 @@ int8_t set_persistent_mac(uint8_t portnum, uint8_t * mac)
...
@@ -116,7 +120,7 @@ int8_t set_persistent_mac(uint8_t portnum, uint8_t * mac)
/* Write the last EEPROM with the MAC */
/* Write the last EEPROM with the MAC */
owLevel
(
portnum
,
MODE_NORMAL
);
owLevel
(
portnum
,
MODE_NORMAL
);
if
(
Write43
(
portnum
,
FamilySN
[
0
],
EEPROM_MAC_PAGE
,
&
write_buffer
)
==
if
(
Write43
(
portnum
,
FamilySN
[
0
],
EEPROM_MAC_PAGE
,
write_buffer
)
==
TRUE
)
TRUE
)
return
0
;
return
0
;
...
...
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