Skip to content

Commit b752512

Browse files
switch: fix add_callback
Signed-off-by: Francois Berder <[email protected]>
1 parent 73484c0 commit b752512

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

letmecreate/core/switch.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ def add_callback(event_mask, callback):
4040
if ret < 0:
4141
raise Exception("switch add callback failed")
4242
_CALLBACKS[ret] = ptr
43+
return ret
4344

4445

4546
def remove_callback(callback_id):

0 commit comments

Comments
 (0)