Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

µC/FS expects that any call to a function that accesses a removable device may fail, since the device may be removed, powered off or suddenly unresponsive. If µC/FS detects such an event, the device will need to be refreshed or closed and re-opened. FSDev_Refresh() refreshes a device:


Code Block
languagecpp
chngd = FSDev_Refresh((CPU_CHAR *)"ide:0:",  /* <-- device name  */
                      (FS_ERR   *)&err);     /* <-- return error */


There are several cases to consider:

...