@@ -374,9 +374,6 @@ int OSPIFBlockDevice::deinit()
374
374
375
375
if (false == _is_mem_ready ()) {
376
376
tr_error (" Device not ready after write, failed" );
377
- /* program_failed = true;
378
- status = OSPIF_BD_ERROR_READY_FAILED;
379
- goto exit_point;*/
380
377
}
381
378
382
379
#ifdef MX_FLASH_SUPPORT_RWW
@@ -421,7 +418,7 @@ int OSPIFBlockDevice::read(void *buffer, bd_addr_t addr, bd_size_t size)
421
418
return OSPIF_BD_ERROR_OK;
422
419
}
423
420
424
- } else {
421
+ } else {
425
422
if (_wait_flag == WRITE_WAIT_STARTED) {
426
423
tr_debug (" \r\n RWW1 CNT" );
427
424
} else if (_wait_flag == ERASE_WAIT_STARTED) {
@@ -448,7 +445,7 @@ int OSPIFBlockDevice::read(void *buffer, bd_addr_t addr, bd_size_t size)
448
445
#ifdef MX_FLASH_SUPPORT_RWW
449
446
if (need_wait) {
450
447
_busy_mutex.unlock ();
451
- }
448
+ }
452
449
#endif
453
450
454
451
return status;
@@ -515,8 +512,7 @@ int OSPIFBlockDevice::program(const void *buffer, bd_addr_t addr, bd_size_t size
515
512
goto exit_point;
516
513
}
517
514
_mutex.unlock ();
518
- #endif
519
-
515
+ #endif
520
516
buffer = static_cast <const uint8_t *>(buffer) + chunk;
521
517
addr += chunk;
522
518
size -= chunk;
@@ -1801,7 +1797,7 @@ ospi_status_t OSPIFBlockDevice::_ospi_send_general_command(ospi_inst_t instructi
1801
1797
if ((instruction == OSPIF_INST_RSR1) || (instruction == OSPIF_INST_RDID) ||
1802
1798
(instruction == OSPIF_INST_RDCR2) || (instruction == OSPIF_INST_RDCR)) {
1803
1799
_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 );
1805
1801
if (instruction != OSPIF_INST_RDCR2) {
1806
1802
addr = 0 ;
1807
1803
}
0 commit comments