1
0
Fork 0
forked from Miroirs/x49gp

Fixed but in CFI data read

This commit is contained in:
claudiol 2019-03-07 12:35:30 -05:00
parent 9dd9ebc4dd
commit 4d15e6d58f

View file

@ -140,7 +140,7 @@ flash_get_halfword(x49gp_flash_t *flash, uint32_t offset)
break;
case FLASH_STATE_CFI_QUERY:
if (offset < flash->cfi_size) {
if ( (offset>>1) < flash->cfi_size) {
data = flash->cfi_data[offset >> 1];
} else {
data = 0x0000;