Fixed SoE opcode determination.
authorFlorian Pose <fp@igh-essen.com>
Fri, 05 Mar 2010 16:15:22 +0100
changeset 1838 1fca55f14b06
parent 1837 32136215c1fa
child 1839 7f36c38e2518
Fixed SoE opcode determination.
master/fsm_soe.c
--- a/master/fsm_soe.c	Fri Mar 05 15:32:56 2010 +0100
+++ b/master/fsm_soe.c	Fri Mar 05 16:15:22 2010 +0100
@@ -338,7 +338,7 @@
         return;
     }
 
-	opcode = EC_READ_U8(data) & 0x3;
+	opcode = EC_READ_U8(data) & 0x7;
     if (opcode != EC_SOE_OPCODE_READ_RESPONSE) {
         EC_ERR("Received no read response (opcode %x).\n", opcode);
         ec_print_data(data, rec_size);
@@ -579,7 +579,7 @@
         return;
     }
 
-	opcode = EC_READ_U8(data) & 0x3;
+	opcode = EC_READ_U8(data) & 0x7;
     if (opcode != EC_SOE_OPCODE_WRITE_RESPONSE) {
         EC_ERR("Received no write response (opcode %x).\n", opcode);
         ec_print_data(data, rec_size);