Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Components/FileSystem/FileSystem.scvd
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>

<component_viewer schemaVersion="0.1" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="Component_Viewer.xsd">
<component name="File System" shortname="FS" version="8.0.5"/> <!-- name and version of the component -->
<component name="File System" shortname="FS" version="8.0.6"/> <!-- name and version of the component -->

<typedefs>
<!-- Flash Sector information (Driver_Flash.h line 58) -->
Expand Down
2 changes: 1 addition & 1 deletion Components/FileSystem/Include/rl_fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

#define MW_FS_VERSION_MAJOR 8
#define MW_FS_VERSION_MINOR 0
#define MW_FS_VERSION_PATCH 5
#define MW_FS_VERSION_PATCH 6

// ==== Enumeration, structures, defines ====

Expand Down
33 changes: 17 additions & 16 deletions Components/FileSystem/Source/fs_fat.c
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ static uint32_t char_validate (char ch) {
(ch >= '^' && ch <= '{') ||
(ch == '}') ||
(ch == '~') ) {

/* Valid SFN character */
val = 1;
}
#ifndef FS_FAT_NO_LFN
Expand All @@ -821,9 +821,12 @@ static uint32_t char_validate (char ch) {
(ch == ';') ||
(ch == '=') ||
(ch == '[') ||
(ch == ']') ||
(ch > 127) ) {

(ch == ']') ) {
/* Valid LFN character */
val = 2;
}
if ((uint8_t)ch > 127) {
/* Valid LFN character */
val = 2;
}
#endif
Expand Down Expand Up @@ -1054,9 +1057,9 @@ static bool name_basis_gen (const char *fn, uint32_t fn_len, char *bn) {

i = 0;
/* Strip leading spaces */
while (fn[i] == ' ' && i < fn_len) { i++; }
while ((i < fn_len) && (fn[i] == ' ')) { i++; }
/* Strip leading periods */
while (fn[i] == '.' && i < fn_len) { i++; }
while ((i < fn_len) && (fn[i] == '.')) { i++; }

len = 0;
lossy = false;
Expand All @@ -1073,17 +1076,15 @@ static bool name_basis_gen (const char *fn, uint32_t fn_len, char *bn) {
else {
/* Skip all embedded spaces */
if (ch != ' ') {
if (len < 8) {
if (char_validate (ch) != 1) {
*bn = '_';
lossy = true;
}
else {
*bn = ch;
}
bn++;
len++;
if (char_validate (ch) != 1) {
*bn = '_';
lossy = true;
}
else {
*bn = ch;
}
bn++;
len++;
}
}
i++;
Expand Down
3 changes: 2 additions & 1 deletion Documentation/Doxygen/FileSystem/src/revision_history.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
<th>Description</th>
</tr>
<tr>
<td>V8.0.5</td>
<td>V8.0.6</td>
<td>
- corrected funmount for FAT drives when called multiple times
- corrected FAT name cache entry size from 48 to 40 bytes
- corrected various minor code quality issues
</td>
</tr>
<tr>
Expand Down
2 changes: 1 addition & 1 deletion Documentation/Doxygen/General/src/revision_history.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<td>V8.3.1</td>
<td>
- Network Component Version 8.3.1
- FileSystem Component Version 8.0.5
- FileSystem Component Version 8.0.6
- USB Component Version 8.0.2 (unchanged)
</td>
</tr>
Expand Down
5 changes: 3 additions & 2 deletions Keil.MDK-Middleware.pdsc
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@
<releases>
<release version="8.3.1-dev">
Active development ...
FileSystem Component Version 8.0.5
FileSystem Component Version 8.0.6
- corrected funmount for FAT drives when called multiple times
- corrected FAT name cache entry size from 48 to 40 bytes
- corrected various minor code quality issues
Network Component Version 8.3.1
- fixed possible TCP socket reset after timeout recovery
- various minor fixes and security improvements
Expand Down Expand Up @@ -1163,7 +1164,7 @@
</bundle>

<!-- File System (MDK) -->
<bundle Cbundle="MDK" Cclass="File System" Cversion="8.0.5">
<bundle Cbundle="MDK" Cclass="File System" Cversion="8.0.6">
<description>File Access on various storage devices</description>
<doc>Documentation/html/FileSystem/index.html</doc>
<component Cgroup="CORE" condition="CMSIS Core with RTOS and File System I/O">
Expand Down
Loading