I2C code testing

Dependencies:   FreescaleIAP SimpleDMA mbed-rtos mbed

Fork of COM_MNG_TMTC_SIMPLE_pl123 by Siva ram

Revision:
29:f4c59f7285a2
Parent:
27:f408ea06fcab
Child:
30:154938956d89
--- a/COM_SND_TM.h	Sun Jan 03 12:01:42 2016 +0000
+++ b/COM_SND_TM.h	Sun Jan 03 16:21:52 2016 +0000
@@ -63,7 +63,7 @@
         Base_tm*head = head_ptr;
         type0_no = 0;
         type1_no = 0;
-        while(head->next_TM != NULL){
+        while(head!= NULL){
             switch( GETshort_or_long_tm(head->fields) ){
                 case 0:
                     type0_no++;
@@ -335,15 +335,7 @@
  
  
         void head_pointer(Base_tm* ptr){
-            Base_tm *genTM = ptr;
-            while(ptr->next_TM != NULL)
-            {
-                ptr=ptr->next_TM;
-            }
-            ptr->next_TM = new Long_tm;
-            ptr = ptr->next_TM;
-            ptr->next_TM = NULL;
-            head_ptr = genTM ;
+            head_ptr = ptr ;
             type1_frame_flag = true;
             type0_frame_flag = true;
             make_DataStream_f = true;