mirror of https://github.com/ARMmbed/mbed-os.git
Fixed astyle error and removed duplicated comment
parent
aed0d054d7
commit
e0ad71554b
|
@ -214,8 +214,7 @@ int SPIFBlockDevice::init()
|
|||
_dummy_and_mode_cycles = _write_dummy_and_mode_cycles;
|
||||
_is_initialized = true;
|
||||
|
||||
if (_device_size_bytes > (1 << 24)) // Size is bigger than 16MB and thus address does not fit in 3 byte, switch to 4 byte address mode
|
||||
{
|
||||
if (_device_size_bytes > (1 << 24)) {
|
||||
tr_debug("Size is bigger than 16MB and thus address does not fit in 3 byte, switch to 4 byte address mode");
|
||||
_spi_send_general_command(SPIF_4BEN, SPI_NO_ADDRESS_COMMAND, NULL, 0, NULL, 0);
|
||||
_address_size = SPIF_ADDR_SIZE_4_BYTES;
|
||||
|
|
Loading…
Reference in New Issue