Pārlūkot izejas kodu

Merge pull request #1 from zxmarcos/master

lcdFree
pull/54/head
cail pirms 7 gadiem
committed by GitHub
vecāks
revīzija
c0425001b8
2 mainītis faili ar 18 papildinājumiem un 0 dzēšanām
  1. +16
    -0
      devLib/lcd.c
  2. +2
    -0
      devLib/lcd.h

+ 16
- 0
devLib/lcd.c Parādīt failu

@@ -498,3 +498,19 @@ int lcdInit (const int rows, const int cols, const int bits,

return lcdFd ;
}


/*
* lcdFree:
* Free a LCD handle.
*********************************************************************************
*/

void lcdFree (const int fd)
{
if ((fd >= 0) && (fd < MAX_LCDS))
{
free(lcds[fd]);
lcds[fd] = NULL;
}
}

+ 2
- 0
devLib/lcd.h Parādīt failu

@@ -47,6 +47,8 @@ extern int lcdInit (const int rows, const int cols, const int bits,
const int d0, const int d1, const int d2, const int d3, const int d4,
const int d5, const int d6, const int d7);

extern void lcdFree (const int fd);

#ifdef __cplusplus
}
#endif

Notiek ielāde…
Atcelt
Saglabāt