Skip to content

Commit e0ad715

Browse files
committed
Fixed astyle error and removed duplicated comment
1 parent aed0d05 commit e0ad715

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

components/storage/blockdevice/COMPONENT_SPIF/SPIFBlockDevice.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,7 @@ int SPIFBlockDevice::init()
214214
_dummy_and_mode_cycles = _write_dummy_and_mode_cycles;
215215
_is_initialized = true;
216216

217-
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
218-
{
217+
if (_device_size_bytes > (1 << 24)) {
219218
tr_debug("Size is bigger than 16MB and thus address does not fit in 3 byte, switch to 4 byte address mode");
220219
_spi_send_general_command(SPIF_4BEN, SPI_NO_ADDRESS_COMMAND, NULL, 0, NULL, 0);
221220
_address_size = SPIF_ADDR_SIZE_4_BYTES;

0 commit comments

Comments
 (0)