Just4Trionic - CAN and BDM FLASH programmer for Saab cars

Dependencies:   mbed

Revision:
3:92dae9083c83
Parent:
1:d5452e398b76
--- a/t5utils.cpp	Tue Dec 14 21:50:35 2010 +0000
+++ b/t5utils.cpp	Tue Jun 07 12:23:28 2011 +0000
@@ -308,12 +308,14 @@
     // wait for the T5 to reply
     char T5RxMsg[8];
     // if a message is not received, has the wrong type or indicates an error then there is a problem
-    if ((!can_wait_timeout(RESPID, T5RxMsg, 8, T5MESSAGETIMEOUT)) || (T5RxMsg[0] != T5TxMsg[0]) || (T5RxMsg[1] != 0x00))
-        return FALSE;
+    return ((!can_wait_timeout(RESPID, T5RxMsg, 8, T5MESSAGETIMEOUT)) || (T5RxMsg[0] != T5TxMsg[0]) || (T5RxMsg[1] != 0x00))
+        ? FALSE : TRUE;
+//    if ((!can_wait_timeout(RESPID, T5RxMsg, 8, T5MESSAGETIMEOUT)) || (T5RxMsg[0] != T5TxMsg[0]) || (T5RxMsg[1] != 0x00))
+//        return FALSE;
     // wait for the T5 to reset
     // if a message is not received, has the wrong type or indicates an error then there is a problem
-    return (!can_wait_timeout(RSETID, T5RxMsg, 8, T5MESSAGETIMEOUT))
-        ? FALSE : TRUE;
+//    return (!can_wait_timeout(RSETID, T5RxMsg, 8, T5MESSAGETIMEOUT))
+//        ? FALSE : TRUE;
 }
 
 //-----------------------------------------------------------------------------