Merged in mattbrejza/ugfx/gfile-deinit (pull request #27)

Adding code to close all open files in gfile deinit
ugfx_release_2.6
Joel Bodenmann 2016-07-25 17:45:58 +02:00
commit 718b7b3d5c
1 changed files with 5 additions and 1 deletions

View File

@ -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);
}
}
/**