some cleanings and re-disable VFS debug

sipo
Ondřej Hruška 7 years ago
parent 62096da6e6
commit e1ce976278
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 2
      gex.mk
  2. 1
      vfs/file_stream.c
  3. 7
      vfs/vfs_user.c

@ -46,7 +46,7 @@ GEX_CDEFS = \
-DUSE_FULL_LL_DRIVER \ -DUSE_FULL_LL_DRIVER \
-DUSE_FULL_ASSERT=1 \ -DUSE_FULL_ASSERT=1 \
-DVERBOSE_ASSERT=1 \ -DVERBOSE_ASSERT=1 \
-DDEBUG_VFS=1 \ -DDEBUG_VFS=0 \
-DVERBOSE_HARDFAULT=1 \ -DVERBOSE_HARDFAULT=1 \
-DUSE_STACK_MONITOR=1 \ -DUSE_STACK_MONITOR=1 \
-DUSE_DEBUG_UART=1 -DUSE_DEBUG_UART=1

@ -238,6 +238,7 @@ static error_t close_conf(void *state)
ini_parse_end(); ini_parse_end();
settings_read_ini_end(); settings_read_ini_end();
// force a full remount to have the changes be visible
vfs_mngr_fs_remount(true); vfs_mngr_fs_remount(true);
return E_SUCCESS; return E_SUCCESS;

@ -19,9 +19,9 @@
* limitations under the License. * limitations under the License.
*/ */
#include "platform.h"
#include "utils/ini_writer.h" #include "utils/ini_writer.h"
#include "framework/settings.h" #include "framework/settings.h"
#include "platform.h"
#include "vfs_manager.h" #include "vfs_manager.h"
#include "str_utils.h" #include "str_utils.h"
@ -68,9 +68,10 @@ void vfs_user_file_change_handler(const vfs_filename_t filename,
vfs_file_change_t change, vfs_file_change_t change,
vfs_file_t file, vfs_file_t new_file_data) vfs_file_t file, vfs_file_t new_file_data)
{ {
// Check for "System Volume Information"
if (strstarts(filename, "SYSTEM~1")) { if (strstarts(filename, "SYSTEM~1")) {
vfs_printf("ATENTION - we are dealing with windows! Careful or it will crash!"); vfs_printf("ATTN! Windows host detected.");
// TODO take precautions // TODO take precautions if needed
vfs_is_windows = true; vfs_is_windows = true;
return; return;
} }

Loading…
Cancel
Save