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;
}
{
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