C is not for the weak
This commit is contained in:
parent
9d3d38b423
commit
f65782fb7e
@ -15,7 +15,7 @@
|
|||||||
#include "../libs/GUI/GUI_BMPfile.h"
|
#include "../libs/GUI/GUI_BMPfile.h"
|
||||||
#include "../libs/Config/Debug.h"
|
#include "../libs/Config/Debug.h"
|
||||||
|
|
||||||
void close() {
|
void closeP2FA() {
|
||||||
EPD_2in13_V4_Init();
|
EPD_2in13_V4_Init();
|
||||||
EPD_2in13_V4_Clear();
|
EPD_2in13_V4_Clear();
|
||||||
|
|
||||||
@ -25,10 +25,11 @@ void close() {
|
|||||||
|
|
||||||
DEV_Module_Exit();
|
DEV_Module_Exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Handler(int sigNum) {
|
void Handler(int sigNum) {
|
||||||
DebugLine(28, 0, "Caught signal %d\n", sigNum);
|
DebugLine(28, 0, "Caught signal %d\n", sigNum);
|
||||||
|
|
||||||
close();
|
closeP2FA();
|
||||||
endwin();
|
endwin();
|
||||||
|
|
||||||
exit(0);
|
exit(0);
|
||||||
@ -159,7 +160,7 @@ int main() {
|
|||||||
|
|
||||||
drawLoop();
|
drawLoop();
|
||||||
|
|
||||||
close();
|
closeP2FA();
|
||||||
endwin();
|
endwin();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user