]> jspc29.x-matter.uni-frankfurt.de Git - trbnettools.git/commitdiff
Fixes the compatibility of trbflash with the dirich concentrators. master
authorManuel Reyes <m.reyes@gsi.de>
Thu, 7 Nov 2024 12:54:26 +0000 (13:54 +0100)
committerManuel Reyes <m.reyes@gsi.de>
Thu, 7 Nov 2024 12:54:26 +0000 (13:54 +0100)
Restored the original manufacturer ID of the flash on the dirich concetrator in the assignment of the flash parameters, and added the ID of the flash on the farich concentrator as a compatible flash manufacturer ID.  Manuel Reyes

libtrbnet/trbflash.c

index cdef3f4d1cdb1932676183e5d4f634425fc15cd3..caa0ce6d6b977308fed16cab0af9fa1e07020aa0 100644 (file)
@@ -378,8 +378,8 @@ static int setFlashParam(FlashParam* flashParam, uint16_t hardwareId)
 
   case 0x9700:
     flashParam->flashType = FLASH_DIRICH_CONCENTRATOR;
-    //flashParam->manId = 0x1720c2;
-    flashParam->manId = 0x1728c2;
+    flashParam->manId = 0x1720c2; // manufacturer Id of flash on Dirich concentrator
+    flashParam->compatibleManId[0] =  0x1728c2; // manufacturer Id of flash on Farich concentrator
     strcpy(flashParam->allowedStringId[0], "dirich_co");
     strcpy(flashParam->allowedStringId[1], "combiner");
     flashParam->numPages = 32768;