publishing to check changes in cdms code

Dependencies:   FreescaleIAP SimpleDMA mbed-rtos mbed

Fork of CDMS_CODE_samp_23SEP_DMA_flag by samp Srinivasan

Revision:
259:066a7abd2a5f
Parent:
257:7d404e9dc9e2
Child:
260:65e1ace927fd
diff -r 7d404e9dc9e2 -r 066a7abd2a5f COM_MNG_TMTC.h
--- a/COM_MNG_TMTC.h	Tue Jul 12 17:07:17 2016 +0000
+++ b/COM_MNG_TMTC.h	Tue Jul 12 17:30:04 2016 +0000
@@ -461,13 +461,13 @@
                             mid=(uint16_t)(tc_ptr->TC_string[3]<<4)+(uint16_t)(tc_ptr->TC_string[4]);
                             //32 bits at a time           
 
-                            if(mid<0 || mid>4)                                  //allowable MID values?
+                            if(mid<0 || mid>16)                                  //allowable MID values?
                             {
                                 ACK_L234(tm_pointer,0x02,GETpacket_seq_count(tc_ptr));
                                 return tm_ptr;
                             }                                                        
                             
-                            FCTN_CDMS_WR_S_FLASH(mid,(uint32_t)(tc_ptr->TC_string[5]<<24)+(uint32_t)(tc_ptr->TC_string[6]<<16)+(uint32_t)(tc_ptr->TC_string[7]<<8)+(uint32_t)(tc_ptr->TC_string[8]));                          
+                            FCTN_CDMS_WR_FLASH(mid,(uint32_t)(tc_ptr->TC_string[5]<<24)+(uint32_t)(tc_ptr->TC_string[6]<<16)+(uint32_t)(tc_ptr->TC_string[7]<<8)+(uint32_t)(tc_ptr->TC_string[8]));                          
 
                             ACK_L234(tm_pointer,0xA0,GETpacket_seq_count(tc_ptr));                     //ackCode = ? for success
 
@@ -486,7 +486,7 @@
                             }    
 
                             //Send TM for success after writing onto flash
-                            FCTN_CDMS_WR_L_FLASH(mid);
+                            //FCTN_CDMS_WR_L_FLASH(mid);
 
                             return tm_ptr;
                         }                                                    
@@ -497,7 +497,7 @@
                             return tm_ptr;
                         }
                     } 
-                }  */                                                                 
+                }                                                                
                 case 0x80:
                 {
                     gPC.printf("service:FUNCTION MANAGEMENT SERVICE\r\n");