summaryrefslogtreecommitdiff
path: root/firmware/target/hosted/system-hosted.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/hosted/system-hosted.c')
-rw-r--r--firmware/target/hosted/system-hosted.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/firmware/target/hosted/system-hosted.c b/firmware/target/hosted/system-hosted.c
index cad84ac868..f485dc4c15 100644
--- a/firmware/target/hosted/system-hosted.c
+++ b/firmware/target/hosted/system-hosted.c
@@ -130,7 +130,7 @@ void system_exception_wait(void)
130bool hostfs_removable(IF_MD_NONVOID(int drive)) 130bool hostfs_removable(IF_MD_NONVOID(int drive))
131{ 131{
132#ifdef HAVE_MULTIDRIVE 132#ifdef HAVE_MULTIDRIVE
133 if (drive > 0) /* Active LOW */ 133 if (drive > 0)
134 return true; 134 return true;
135 else 135 else
136#endif 136#endif
@@ -157,7 +157,11 @@ int volume_drive(int drive)
157#ifdef CONFIG_STORAGE_MULTI 157#ifdef CONFIG_STORAGE_MULTI
158int hostfs_driver_type(int drive) 158int hostfs_driver_type(int drive)
159{ 159{
160#if (CONFIG_STORAGE & STORAGE_USB)
161 return drive > 0 ? STORAGE_USB_NUM : STORAGE_HOSTFS_NUM;
162#else
160 return drive > 0 ? STORAGE_SD_NUM : STORAGE_HOSTFS_NUM; 163 return drive > 0 ? STORAGE_SD_NUM : STORAGE_HOSTFS_NUM;
164#endif
161} 165}
162#endif /* CONFIG_STORAGE_MULTI */ 166#endif /* CONFIG_STORAGE_MULTI */
163 167
@@ -185,4 +189,3 @@ bool volume_present(int volume)
185 return hostfs_present(volume); 189 return hostfs_present(volume);
186} 190}
187#endif 191#endif
188