mirror of
https://github.com/gwenhael-le-moine/x49gp.git
synced 2024-12-25 21:58:49 +01:00
Fixed but in CFI data read
This commit is contained in:
parent
9dd9ebc4dd
commit
4d15e6d58f
1 changed files with 1 additions and 1 deletions
2
flash.c
2
flash.c
|
@ -140,7 +140,7 @@ flash_get_halfword(x49gp_flash_t *flash, uint32_t offset)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case FLASH_STATE_CFI_QUERY:
|
case FLASH_STATE_CFI_QUERY:
|
||||||
if (offset < flash->cfi_size) {
|
if ( (offset>>1) < flash->cfi_size) {
|
||||||
data = flash->cfi_data[offset >> 1];
|
data = flash->cfi_data[offset >> 1];
|
||||||
} else {
|
} else {
|
||||||
data = 0x0000;
|
data = 0x0000;
|
||||||
|
|
Loading…
Reference in a new issue