Skip to content

Commit 7af487e

Browse files
committed
Switch off debug infos
1 parent 9718b82 commit 7af487e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/org/deepjava/openOCDInterface/OpenOCD.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
public class OpenOCD extends TargetConnection {
2222

23-
private static boolean dbg = true;
23+
private static boolean dbg = false;
2424
private static TargetConnection tc;
2525
private String hostname;
2626
private int port;
@@ -33,7 +33,7 @@ private OpenOCD() { }
3333
public static TargetConnection getInstance() {
3434
if (tc != null && !tc.isConnected()) tc = null;
3535
if (tc == null) {
36-
if (dbg) StdStreams.vrb.println("[TARGET] OpenOCD: Creating new OpenOCD Telnet");
36+
if (dbg) StdStreams.vrb.println("[TARGET] OpenOCD: Creating new OpenOCD telnet connection");
3737
tc = new OpenOCD();
3838
}
3939
return tc;
@@ -47,7 +47,7 @@ public void openConnection() throws TargetConnectionException {
4747
currLoc = currLoc.replace(currLoc.substring(currLoc.length()-1), "");
4848
currLoc += "\\startOpenocd-local.bat";
4949
String name = "F:\\openocd-0.10.0\\startOpenocdMicrozed.bat";
50-
StdStreams.vrb.println("run openocd: " + name);
50+
// StdStreams.vrb.println("run openocd: " + name);
5151
File dir = new File("F:\\openocd-0.10.0");
5252
Process p = Runtime.getRuntime().exec("cmd /c start \"\" " + name, null, dir);
5353
if (p != null) {
@@ -88,7 +88,6 @@ public void closeConnection() {
8888
// do nothing
8989
}
9090
if (dbg) StdStreams.vrb.println("[TARGET] Connection closed");
91-
System.out.println("closing");
9291
}
9392

9493
@Override
@@ -340,7 +339,7 @@ public void downloadImageFile(String filename) throws TargetConnectionException
340339
ArrayList<Map.Entry<String,Integer>> files = Configuration.getImgFile();
341340
if (files.isEmpty()) StdStreams.err.println("no image files available");
342341
for (Map.Entry<String,Integer> file : files) {
343-
socket.setSoTimeout(3000);
342+
socket.setSoTimeout(8000);
344343
String name = file.getKey();
345344
name = name.replace('\\', '/');
346345
StdStreams.log.println("Downloading " + name);

0 commit comments

Comments
 (0)