@@ -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 }
0 commit comments