Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
sfp-plus-i2c
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
9
Issues
9
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
sfp-plus-i2c
Commits
fa1de65b
Commit
fa1de65b
authored
Feb 09, 2018
by
Vincent van Beveren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed read time-out when cloning
parent
69df5429
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
DataSource.java
sw/jsfp/src/nl/nikhef/sfp/ddmi/DataSource.java
+14
-1
DollyModel.java
sw/safaripark/src/nl/nikhef/safaripark/dolly/DollyModel.java
+1
-1
No files found.
sw/jsfp/src/nl/nikhef/sfp/ddmi/DataSource.java
View file @
fa1de65b
...
...
@@ -129,7 +129,20 @@ public abstract class DataSource {
}
// System.out.printf("Rescaling write, old-off=%d new-off=%d old-len=%d new-len=%d\n", off, nOff, data.length, nLen);
byte
[]
newData
=
read
(
ctx
,
nOff
,
nLen
);
byte
[]
newData
=
null
;
for
(
int
retry
=
0
;
retry
<
MAX_RETRIES
;
retry
++)
{
newData
=
read
(
ctx
,
nOff
,
nLen
);
if
(
newData
!=
null
)
break
;
try
{
Thread
.
sleep
(
10
);
}
catch
(
InterruptedException
e
)
{
}
}
if
(
newData
==
null
)
{
throw
new
RuntimeException
(
"Failed to cache EEPROM data"
);
}
System
.
arraycopy
(
data
,
0
,
newData
,
err
,
data
.
length
);
off
=
nOff
;
...
...
sw/safaripark/src/nl/nikhef/safaripark/dolly/DollyModel.java
View file @
fa1de65b
...
...
@@ -254,7 +254,7 @@ public class DollyModel implements SFPDeviceListener, SFPProviderListener {
DDMIValue
v
=
_selectedValues
.
get
(
_counter
);
LOG
.
info
(
"Copying value "
+
v
.
get
Label
());
LOG
.
info
(
"Copying value "
+
v
.
get
Name
());
byte
[]
value
;
try
{
value
=
_vg
.
getValue
(
v
);
...
...
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