Skip to content

Commit

Permalink
Merged in mattbrejza/ugfx/gfile-deinit (pull request qmk#27)
Browse files Browse the repository at this point in the history
Adding code to close all open files in gfile deinit
  • Loading branch information
Joel Bodenmann committed Jul 25, 2016
2 parents fd109a3 + 6832ae3 commit 718b7b3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/gfile/gfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@ void _gfileInit(void) {

void _gfileDeinit(void)
{
/* ToDo */
GFILE * f;
for (f = gfileArr; f < &gfileArr[GFILE_MAX_GFILES]; f++) {
if (f->flags & GFILEFLG_OPEN)
gfileClose(f);
}
}

/**
Expand Down

0 comments on commit 718b7b3

Please sign in to comment.