git://git.nikiroo.be
/
nikiroo-utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into streamify
[nikiroo-utils.git]
/
src
/
be
/
nikiroo
/
utils
/
serial
/
SerialUtils.java
diff --git
a/src/be/nikiroo/utils/serial/SerialUtils.java
b/src/be/nikiroo/utils/serial/SerialUtils.java
index 55d1f842e2597381d52984c48dbd614fc3518a90..c65463281ea51eca82729db53f40370942ab55f6 100644
(file)
--- a/
src/be/nikiroo/utils/serial/SerialUtils.java
+++ b/
src/be/nikiroo/utils/serial/SerialUtils.java
@@
-70,11
+70,12
@@
public class SerialUtils {
type = type.substring(0, type.length() - 2); // remove the []
write(out, type);
type = type.substring(0, type.length() - 2); // remove the []
write(out, type);
- write(out, "\r");
try {
for (int i = 0; true; i++) {
Object item = Array.get(value, i);
try {
for (int i = 0; true; i++) {
Object item = Array.get(value, i);
+
// encode it normally if direct value
// encode it normally if direct value
+ write(out, "\r");
if (!SerialUtils.encode(out, item)) {
try {
// TODO: bad escaping?
if (!SerialUtils.encode(out, item)) {
try {
// TODO: bad escaping?
@@
-87,7
+88,6
@@
public class SerialUtils {
.getMessage());
}
}
.getMessage());
}
}
- write(out, "\r");
}
} catch (ArrayIndexOutOfBoundsException e) {
// Done.
}
} catch (ArrayIndexOutOfBoundsException e) {
// Done.
@@
-374,7
+374,6
@@
public class SerialUtils {
// setAccessible)
}
}
// setAccessible)
}
}
- write(out, "\n}");
}
/**
}
/**