8000 Update lv_timer.py - add exception in struct size for 32 bit systems · genvex/lv_binding_micropython@bb1f209 · GitHub
[go: up one dir, main page]

Skip to content

Commit bb1f209

Browse files
davieldaviel
authored andcommitted
Update lv_timer.py - add exception in struct size for 32 bit systems
1 parent e4cc766 commit bb1f209

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

driver/linux/lv_timer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444

4545
sigevent_t = {
4646
"sigev_value": (0, sigval_t),
47-
"sigev_signo": 8 | uctypes.INT32,
48-
"sigev_notify": 12 | uctypes.INT32,
47+
"sigev_signo": uctypes.sizeof(sigval_t) | uctypes.INT32,
48+
"sigev_notify": (uctypes.sizeof(sigval_t) + 4) | uctypes.INT32,
4949
}
5050

5151
timespec_t = {

0 commit comments

Comments
 (0)
0