]> jspc29.x-matter.uni-frankfurt.de Git - trbnettools.git/commitdiff
no answer is now status
authorhadaq <hadaq>
Mon, 28 Jun 2010 12:44:19 +0000 (12:44 +0000)
committerhadaq <hadaq>
Mon, 28 Jun 2010 12:44:19 +0000 (12:44 +0000)
libtrbnet/trberror.c
libtrbnet/trbnet.c

index f86830f86b83dc372ede2a7bc62641fcf6e36622..1f90b99fcb61935002df6556a0e35ab9f4c5d080 100644 (file)
@@ -65,13 +65,13 @@ const char* trb_strerror(int trberrno)
 const char* trb_strterm(TRB_TERM term)
 {
   static const char commonStatusBits[16][64] = { 
-    "COM_EndpointReached: no endpoint has been reached",         /* error */
+    "COM_EndpointReached: no endpoint has been reached",         /* status */
     "COM_Collision: collision has been detected",                /* error */
     "COM_WordMissing: mismatch of packet counters (EOB)",        /* error */
-    "COM_Checksum: checksum error",              /* status, at the moment */
+    "COM_Checksum: checksum error",                              /* error */
     "COM_DontUnderstand: endpoint doesn't understand data",      /* error */
     "COM_BufferMismatch: buffer numbers (EOB and ACK) mismatch", /* error */
-    "COM_AnswerMissing: One endpoint didn't react",              /* error */ 
+    "COM_AnswerMissing: One2 endpoint didn't react",             /* status */ 
     "", "", "", "", "", "", "", "", ""
   };
   
index b51ebf5347948bab50f425cb3d8d38408d61721f..1f98b4cf254d625a83a78554b5f9d6c19234fbe1 100644 (file)
@@ -1,4 +1,4 @@
-const char trbnet_version[] = "$Revision: 2.66 $";
+const char trbnet_version[] = "$Revision: 2.67 $";
 
 #include <stdlib.h>
 #include <signal.h>
@@ -917,7 +917,7 @@ static int trb_fifo_read(uint8_t channel,
     return -1;
   }
   
-  if ((trb_term.status_common & 0x007e) != 0) {
+  if ((trb_term.status_common & 0x0003e) != 0) {
     trb_errno = TRB_STATUS_ERROR;
     return -1;
   }