Explorar o código

Add more debugs

Baglio Tabifata %!s(int64=5) %!d(string=hai) anos
pai
achega
7f350024b9
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/net/hkzlab/dupal/boardio/DuPALAnalyzer.java

+ 3 - 1
src/net/hkzlab/dupal/boardio/DuPALAnalyzer.java

@@ -125,9 +125,11 @@ public class DuPALAnalyzer {
                     logger.info("Found no paths starting from ["+ms+"]");
                     ms = null;
                 } else {
+                    ms = slPath[slPath.length - 1].destSState.macroState; // Mark the new macro state
+                    
+                    logger.info("Found a path to another MacroState: ["+ms+"]");
                     // Traverse the path
                     for(StateLink sl : slPath) pulseClock(sl.raw_addr);
-                    ms = slPath[slPath.length - 1].destSState.macroState; // Mark the new macro state
                 }
             }
         }