Skip to content

Commit

Permalink
modify SPINANDBlockDevice.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
rogeryou committed Mar 10, 2022
1 parent 6866fbf commit 8b49682
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ int SPINANDBlockDevice::program(const void *buffer, bd_addr_t addr, bd_size_t si
goto exit_point;
}
} else {
uint8_t *p = (uint8_t*)_page_buf;
uint8_t *p = (uint8_t *)_page_buf;
uint8_t ecc_steps = _ecc_steps;

if (size < _page_size) {
Expand Down Expand Up @@ -643,13 +643,13 @@ bool SPINANDBlockDevice::_read_otp_onfi()
break;
case 4096 :
_page_shift = 13;
break;
break;
}
switch (_page_num) {
case 64 :
_block_shift = _page_shift + 6;
break;
case 128 :
case 128 :
_block_shift = _page_shift + 7;
break;
case 256 :
Expand Down

0 comments on commit 8b49682

Please sign in to comment.