Browse Source

Mehr debugcode & ein Kakerlak beim Streamsenden raus

masterX244 5 months ago
parent
commit
ab3ee365b6

+ 23 - 0
QuickStuff/src/main/java/QuickVerifyCrap/ByteZilser.java

@@ -0,0 +1,23 @@
+package QuickVerifyCrap;
+
+import java.io.FileNotFoundException;
+import java.io.RandomAccessFile;
+
+public class ByteZilser
+{
+    public static void main(String[] args) throws Exception
+    {
+        RandomAccessFile r = new RandomAccessFile("/home/tgoerner/loa/000028/h4xxz0ring-addon/PicoMergedCode/debuggenerated.bin","rw");
+        for(int rp=0;rp<100;rp++)
+        {
+            for(int i=0;i<256;i++)
+            {
+                for (int j=0;j<11;j++)
+                {
+                    r.write(i);
+                }
+            }
+        }
+        r.close();
+    }
+}

+ 3 - 3
QuickStuff/src/main/java/QuickVerifyCrap/SerialSpammer.java

@@ -101,10 +101,10 @@ public class SerialSpammer
                     }
                     else
                     {
-                        System.out.println("Fuick");
+                        //System.out.println("Fuick");
                         o.write(chara);
                         o.flush();
-                        System.out.println("ZilseZilse");
+                        //System.out.println("ZilseZilse");
                     }
                 }
                 if(streamfile!=null)
@@ -114,6 +114,7 @@ public class SerialSpammer
                     {
                         streamfile.close();
                         streamfile=null;
+                        startedStreamPlayback=false;
                     }
                     else
                     {
@@ -145,7 +146,6 @@ public class SerialSpammer
                     }
                 }
             }
-            
         }
         catch (Exception e) { e.printStackTrace(); }
         comPort.closePort();