- fd->reopen = flash_avr_reopen;
- fd->close = flash_avr_close;
- fd->read = flash_avr_read;
- fd->write = flash_avr_write;
- fd->seek = kfile_genericSeek;
- fd->flush = flash_avr_kfileFlush;
+ fd->fd.reopen = flash_avr_reopen;
+ fd->fd.close = flash_avr_close;
+ fd->fd.read = flash_avr_read;
+ fd->fd.write = flash_avr_write;
+ fd->fd.seek = kfile_genericSeek;
+ fd->fd.flush = flash_avr_kfileFlush;
+ fd->curr_page = 0;