updated post.c
authorJingting Zhou <zhoujt@ti.com>
Wed, 19 Sep 2012 00:28:14 +0000 (20:28 -0400)
committerJingting Zhou <zhoujt@ti.com>
Wed, 19 Sep 2012 00:28:14 +0000 (20:28 -0400)
post/src/post.c

index f0638d04480987f48fecb7383ef647da777c6eca..174001aef0f32cd6480c71cdd6a63fe5164aaa51 100644 (file)
@@ -774,7 +774,7 @@ post_test_emac_loopback
     platform_delay(100);
     
     /* Receive the loopback packet */
-    if (ret = cpmac_drv_receive (&nDevice, test_buf) < 0)
+    if (ret = cpmac_drv_receive (&nDevice, test_buf) <= 0)
     {
         return POST_TEST_RESULT_FAILED;
     }
@@ -802,7 +802,7 @@ post_test_emac_loopback
 
     platform_delay(1000);
 
-    if(EMAC_Recv(test_buf) < 0)
+    if(EMAC_Recv(test_buf) <= 0)
     {
         return POST_TEST_RESULT_FAILED;
     }