Skip to content

Commit cc80212

Browse files
committed
modify for Travis CI
1 parent 0db8da1 commit cc80212

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

storage/blockdevice/COMPONENT_OSPIF/source/OSPIFBlockDevice.cpp

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -374,9 +374,6 @@ int OSPIFBlockDevice::deinit()
374374

375375
if (false == _is_mem_ready()) {
376376
tr_error("Device not ready after write, failed");
377-
/* program_failed = true;
378-
status = OSPIF_BD_ERROR_READY_FAILED;
379-
goto exit_point;*/
380377
}
381378

382379
#ifdef MX_FLASH_SUPPORT_RWW
@@ -421,7 +418,7 @@ int OSPIFBlockDevice::read(void *buffer, bd_addr_t addr, bd_size_t size)
421418
return OSPIF_BD_ERROR_OK;
422419
}
423420

424-
} else {
421+
} else {
425422
if (_wait_flag == WRITE_WAIT_STARTED) {
426423
tr_debug("\r\n RWW1 CNT");
427424
} else if (_wait_flag == ERASE_WAIT_STARTED) {
@@ -448,7 +445,7 @@ int OSPIFBlockDevice::read(void *buffer, bd_addr_t addr, bd_size_t size)
448445
#ifdef MX_FLASH_SUPPORT_RWW
449446
if (need_wait) {
450447
_busy_mutex.unlock();
451-
}
448+
}
452449
#endif
453450

454451
return status;
@@ -515,8 +512,7 @@ int OSPIFBlockDevice::program(const void *buffer, bd_addr_t addr, bd_size_t size
515512
goto exit_point;
516513
}
517514
_mutex.unlock();
518-
#endif
519-
515+
#endif
520516
buffer = static_cast<const uint8_t *>(buffer) + chunk;
521517
addr += chunk;
522518
size -= chunk;
@@ -1801,7 +1797,7 @@ ospi_status_t OSPIFBlockDevice::_ospi_send_general_command(ospi_inst_t instructi
18011797
if ((instruction == OSPIF_INST_RSR1) || (instruction == OSPIF_INST_RDID) ||
18021798
(instruction == OSPIF_INST_RDCR2) || (instruction == OSPIF_INST_RDCR)) {
18031799
_ospi.configure_format(_inst_width, _inst_size, _address_width, _address_size, OSPI_CFG_BUS_SINGLE,
1804-
0, _data_width, 4);
1800+
0, _data_width, _dummy_cycles);
18051801
if (instruction != OSPIF_INST_RDCR2) {
18061802
addr = 0;
18071803
}

storage/blockdevice/tests/TESTS/blockdevice/general_block_device/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ void test_rww_rwe()
487487
err = block_device->program((const void *)data_buf, start_address_B0, data_buf_size);
488488
TEST_ASSERT_EQUAL(0, err);
489489

490-
// Read written memory region in bank1 to verify it contains information
490+
// Read written memory region in bank1 to verify it contains information
491491
// utest_printf("reading written memory region in bank1 when write bank0\n");
492492
err = block_device->read((void *)out_data_buf, start_address_B1, data_buf_size);
493493
TEST_ASSERT_EQUAL(0, err);

0 commit comments

Comments
 (0)