]> jspc29.x-matter.uni-frankfurt.de Git - trbnettools.git/commitdiff
added mdchub
authorhadeshyp <hadeshyp>
Thu, 8 Apr 2010 09:53:29 +0000 (09:53 +0000)
committerhadeshyp <hadeshyp>
Thu, 8 Apr 2010 09:53:29 +0000 (09:53 +0000)
trbrich/trbflash.c

index 860fdb737fa456a0cee96b5eba8a19030e33c6bc..0797f27330dbc2b2b3ce08b63f0eef045a2f4939 100644 (file)
@@ -62,12 +62,12 @@ typedef enum {
   FLASH_MDC = 3
 } FlashType;
 
-static const char FlashTypeStr[][16] =
-  {"INVALID", "ADCM1", "ADCM2&3 / SHOWER", "MDC"};
+static const char FlashTypeStr[][32] =
+  {"INVALID", "ADCM1", "ADCM2&3 / SHOWER / MDCHub", "MDC OEP"};
 
 static FlashType flashType = FLASH_INVALID; 
 
-static const char trbflash_version[] = "$Revision: 2.12 $"; 
+static const char trbflash_version[] = "$Revision: 2.13 $"; 
 
 static uint32_t mdcFlashSelect = 1;
 
@@ -851,7 +851,7 @@ static int readImageFile(const char *imageFileName)
 
 static int prepareImageBuffer()
 {
-  char strId[3][32] = {"", ""};
+  char strId[4][32] = {"", ""};
   unsigned int numIds = 0;
   int found;
   unsigned int end;
@@ -869,7 +869,8 @@ static int prepareImageBuffer()
     strncpy(strId[0], "edif_adcmv2", 32);
     strncpy(strId[1], "edif_adcmv3", 32);
     strncpy(strId[2], "shower", 32);
-    numIds = 3;
+    strncpy(strId[3], "mdchub", 32);
+    numIds = 4;
     break;
     
   case FLASH_MDC: