Doc tweak

This commit is contained in:
Benjamin Vedder 2022-11-13 15:00:30 +01:00
parent e784d3efcb
commit c370632219
1 changed files with 6 additions and 7 deletions

View File

@ -1930,14 +1930,13 @@ Events can be used to execute code for certain events, such as when CAN-frames a
The following example shows how to spawn a thread that handles SID (standard-id) CAN-frames and custom app data:
```clj
(define proc-sid (lambda (id data)
(print (list id data)) ; Print the ID and data
))
(defun proc-sid (id data)
(print (list id data))
)
(define proc-data (lambda (data)
(progn
(print data)
)))
(defun proc-data (data)
(print data)
)
(defun event-handler ()
(loopwhile t