8000 Update LVGL and bindind script bugfix · shankezh/lv_binding_micropython@1be17fc · GitHub
[go: up one dir, main page]

Skip to content

Commit 1be17fc

Browse files
committed
Update LVGL and bindind script bugfix
Fix binding script to recognize `user_data` argument correctly in callbacks. `user_data` might be named on callback prototype (`void * field_name` instead of `void *`), therefore need to compare its type only.
1 parent 23394fe commit 1be17fc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

gen/gen_mpy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2221,7 +2221,7 @@ def gen_callback_func(func, func_name = None, user_data_argument = False):
22212221
else:
22222222
user_data = get_user_data(func, func_name)
22232223

2224-
if user_data_argument and len(args) > 0 and gen.visit(args[-1]) == 'void *':
2224+
if user_data_argument and len(args) > 0 and gen.visit(args[-1].type) == 'void *':
22252225
full_user_data = 'arg%d' % (len(args) - 1)
22262226
elif user_data:
22272227
full_user_data = 'arg0->%s' % user_data

lv_conf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@
409409
#define LV_TXT_ENC LV_TXT_ENC_UTF8
410410

411411
/*Can break (wrap) texts on these chars*/
412-
#define LV_TXT_BREAK_CHARS " ,.;:-_"
412+
#define LV_TXT_BREAK_CHARS " ,.;:-_)]}"
413413

414414
/*If a word is at least this long, will break wherever "prettiest"
415415
*To disable, set to a value <= 0*/

0 commit comments

Comments
 (0)
0