Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

diskio_blockdev disk_uninitialize() uncertainty

Hi,

In disk_uninitialize function there are following lines of code:

if (m_drives[drv].last_result == NRF_BLOCK_DEV_RESULT_SUCCESS)
{
m_drives[drv].state |= STA_NOINIT;
}
return m_drives[drv].state;
I checked and #define STA_NOINIT 0x01 /* Drive not initialized */
It means, that correctly working function returns 1? It might be misleading a little
Parents Reply Children
No Data
Related