Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
4a69d242
Commit
4a69d242
authored
Aug 06, 2015
by
zeroday
Browse files
Merge pull request #592 from devsaurus/dev
Fix u8g device destructor
parents
ad49c5dd
02294955
Changes
1
Show whitespace changes
Inline
Side-by-side
app/modules/u8g.c
View file @
4a69d242
...
@@ -6,7 +6,6 @@
...
@@ -6,7 +6,6 @@
#include "auxmods.h"
#include "auxmods.h"
#include "lrotable.h"
#include "lrotable.h"
//#include "c_string.h"
#include "c_stdlib.h"
#include "c_stdlib.h"
#include "u8g.h"
#include "u8g.h"
...
@@ -16,8 +15,6 @@
...
@@ -16,8 +15,6 @@
struct
_lu8g_userdata_t
struct
_lu8g_userdata_t
{
{
u8g_t
u8g
;
u8g_t
u8g
;
u8g_pb_t
pb
;
u8g_dev_t
dev
;
};
};
typedef
struct
_lu8g_userdata_t
lu8g_userdata_t
;
typedef
struct
_lu8g_userdata_t
lu8g_userdata_t
;
...
@@ -969,13 +966,6 @@ static int lu8g_close_display( lua_State *L )
...
@@ -969,13 +966,6 @@ static int lu8g_close_display( lua_State *L )
if
((
lud
=
get_lud
(
L
))
==
NULL
)
if
((
lud
=
get_lud
(
L
))
==
NULL
)
return
0
;
return
0
;
// free up allocated page buffer
if
(
lud
->
pb
.
buf
!=
NULL
)
{
c_free
(
lud
->
pb
.
buf
);
lud
->
pb
.
buf
=
NULL
;
}
return
0
;
return
0
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment