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
29
Issues
29
List
Board
Labels
Milestones
Merge Requests
5
Merge Requests
5
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
9ce4ae00
Commit
9ce4ae00
authored
May 24, 2012
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev/eeprom: have to check if sfp section was found in fmc eeprom
parent
b9a4bea1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
eeprom.c
dev/eeprom.c
+5
-0
No files found.
dev/eeprom.c
View file @
9ce4ae00
...
...
@@ -199,6 +199,11 @@ int8_t access_eeprom(char *sfp_pn, int32_t *alpha, int32_t *deltaTx, int32_t *de
mprintf
(
"! Warning ! too many SFP entries (%d)
\n
"
,
sfp_sz
);
sfp_sz
=
SFPINFO_MAX
;
}
else
if
(
sfp_sz
==
0
)
{
mprintf
(
"EEPROM: could no find SFP section, staring with defaults
\n
"
);
return
-
1
;
}
mprintf
(
"EEPROM: found SFP section at %d size %d
\n
"
,
(
uint32_t
)
sfp_adr
,
(
uint32_t
)
sfp_sz
);
if
(
eeprom_get_sfpinfo
(
WRPC_FMC_I2C
,
FMC_EEPROM_ADR
,
sfp_adr
,
sfpinfo
,
sfp_sz
))
...
...
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