summaryrefslogtreecommitdiff
path: root/py/obj.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-03-15 16:34:07 +1100
committerDamien George <damien.p.george@gmail.com>2018-03-15 16:34:07 +1100
commit2036196d7108ad20c1e4966a84ae2b255e88aa43 (patch)
tree6f442f02b092c882bb3c25fb3c7d396bd08f3450 /py/obj.c
parent22a9158ced8c7640ce25abdf41ae4595bd1efa07 (diff)
stm32/can: Improve can.recv() so it checks for events, eg ctrl-C.
This patch provides a custom (and simple) function to receive data on the CAN bus, instead of the HAL function. This custom version calls mp_handle_pending() while waiting for messages, which, among other things, allows to interrupt the recv() method via KeyboardInterrupt.
Diffstat (limited to 'py/obj.c')
0 files changed, 0 insertions, 0 deletions