Improved JEDEC ID read function. The function now checks how long the extended JEDEC ID field is for the particular FLASH chip and only reads the amount provided by the chip.