From: hadeshyp Date: Thu, 8 Apr 2010 09:53:29 +0000 (+0000) Subject: added mdchub X-Git-Tag: v6.0~279 X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=d92ac059a51c57b44c4bffdfec7b64920f71c23b;p=trbnettools.git added mdchub --- diff --git a/trbrich/trbflash.c b/trbrich/trbflash.c index 860fdb7..0797f27 100644 --- a/trbrich/trbflash.c +++ b/trbrich/trbflash.c @@ -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: