Baglio Tabifata 4 anni fa
parent
commit
bd65ad7266

+ 3 - 0
.vscode/settings.json

@@ -0,0 +1,3 @@
+{
+	"java.home": "/usr/lib/jvm/java-14-openjdk-amd64/"
+}

+ 1 - 1
src/net/hkzlab/dupal/App.java

@@ -4,6 +4,6 @@ import net.hkzlab.dupal.dupalproto.DuPALProto;
 
 public class App {
     public static void main(String[] args) throws Exception {
-        System.out.println(DuPALProto.buildWRITECommand(0xAABBCCDD));
+
     }
 }

+ 1 - 1
src/net/hkzlab/dupal/dupalproto/DuPALProto.java

@@ -41,7 +41,7 @@ public class DuPALProto {
             respString.add(CMD_RESP_ERROR);
         } else if(response.startsWith(RESP_START) && response.endsWith(RESP_END)) {
             response = response.substring(1, response.length()-1).trim();
-            char command = response.charAt(1);
+            char command = response.charAt(0);
             switch(command) {
                 case CMD_READ: 
                 case CMD_WRITE: {