Exemple #1
0
struct fat16_file_struct* sd_open_file_in_dir(struct fat16_dir_struct* dd, const char* name)
{
    struct fat16_dir_entry_struct file_entry;
    if(!sd_find_file_in_dir(dd, name, &file_entry))
        return 0;

    return fat16_open_file(sd_fs, &file_entry);
}
Exemple #2
0
struct fat16_file_struct* open_file_in_dir(struct fat16_fs_struct* fs, struct fat16_dir_struct* dd, const char* name)
{
    struct fat16_dir_entry_struct file_entry;
    if(!find_file_in_dir(fs, dd, name, &file_entry)) {

      //Serial.println("File not found");

        return 0;
    }
    return fat16_open_file(fs, &file_entry);
}