diff --git a/.cproject b/.cproject index 5065da1..e83339f 100644 --- a/.cproject +++ b/.cproject @@ -647,7 +647,7 @@ - + diff --git a/applications/sql/DB_SQLite.c b/applications/sql/DB_SQLite.c index 51617df..4b9959a 100644 --- a/applications/sql/DB_SQLite.c +++ b/applications/sql/DB_SQLite.c @@ -119,7 +119,8 @@ static void handle_db_command(struct db_command *cmd) { char *err_msg = 0; int rc; - switch (cmd->type) { + switch (cmd->type) + { case DB_CMD_INSERT: case DB_CMD_DELETE: case DB_CMD_UPDATE: @@ -330,7 +331,6 @@ static void db_sqlite(void *parameter) { } rt_mutex_release(state_mutex); - //执行命令 handle_db_command(&cmd); diff --git a/rt-thread/components/dfs/dfs_v1/filesystems/tmpfs/dfs_tmpfs.c b/rt-thread/components/dfs/dfs_v1/filesystems/tmpfs/dfs_tmpfs.c index c87be82..b6a4034 100644 --- a/rt-thread/components/dfs/dfs_v1/filesystems/tmpfs/dfs_tmpfs.c +++ b/rt-thread/components/dfs/dfs_v1/filesystems/tmpfs/dfs_tmpfs.c @@ -494,7 +494,7 @@ int dfs_tmpfs_stat(struct dfs_filesystem *fs, if (d_file == NULL) return -ENOENT; - st->st_dev = (rt_device_t)dfs_filesystem_lookup(fs->path); + st->st_dev = fs->dev_id;//(rt_device_t)dfs_filesystem_lookup(fs->path) st->st_mode = S_IFREG | S_IRUSR | S_IRGRP | S_IROTH | S_IWUSR | S_IWGRP | S_IWOTH; if (d_file->type == TMPFS_TYPE_DIR)