Skip to content

Commit 8b49682

Browse files
committed
modify SPINANDBlockDevice.cpp
1 parent 6866fbf commit 8b49682

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: storage/blockdevice/COMPONENT_SPINAND/source/SPINANDBlockDevice.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ int SPINANDBlockDevice::program(const void *buffer, bd_addr_t addr, bd_size_t si
397397
goto exit_point;
398398
}
399399
} else {
400-
uint8_t *p = (uint8_t*)_page_buf;
400+
uint8_t *p = (uint8_t *)_page_buf;
401401
uint8_t ecc_steps = _ecc_steps;
402402

403403
if (size < _page_size) {
@@ -643,13 +643,13 @@ bool SPINANDBlockDevice::_read_otp_onfi()
643643
break;
644644
case 4096 :
645645
_page_shift = 13;
646-
break;
646+
break;
647647
}
648648
switch (_page_num) {
649649
case 64 :
650650
_block_shift = _page_shift + 6;
651651
break;
652-
case 128 :
652+
case 128 :
653653
_block_shift = _page_shift + 7;
654654
break;
655655
case 256 :

0 commit comments

Comments
 (0)