From d92ac059a51c57b44c4bffdfec7b64920f71c23b Mon Sep 17 00:00:00 2001 From: hadeshyp Date: Thu, 8 Apr 2010 09:53:29 +0000 Subject: [PATCH] added mdchub --- trbrich/trbflash.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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: -- 2.43.0