Skip to content

Commit ea12960

Browse files
committed
fix: read/write uart decorators not returning method output
1 parent 76c831c commit ea12960

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arduino_alvik/arduino_alvik.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@
1919
def writes_uart(method):
2020
def wrapper(*args, **kwargs):
2121
with ArduinoAlvik._write_lock:
22-
method(*args, **kwargs)
22+
return method(*args, **kwargs)
2323

2424
return wrapper
2525

2626

2727
def reads_uart(method):
2828
def wrapper(*args, **kwargs):
2929
with ArduinoAlvik._read_lock:
30-
method(*args, **kwargs)
30+
return method(*args, **kwargs)
3131

3232
return wrapper
3333

0 commit comments

Comments
 (0)