]> rtime.felk.cvut.cz Git - sojka/can-utils.git/commit
slcan_attach: added '-f' commandline option to read status flags.
authorOliver Hartkopp <socketcan@hartkopp.net>
Sun, 9 Jan 2011 11:49:20 +0000 (11:49 +0000)
committerOliver Hartkopp <socketcan@hartkopp.net>
Sun, 9 Jan 2011 11:49:20 +0000 (11:49 +0000)
commit7ef581fec0298a228baa71372ea5667874fb4a56
treebd9ea443382a741b7087658a1eb8497d7ab05a1c
parenteb1a99f8c7e2f69b76d7edb90625e910e8326cf0
slcan_attach: added '-f' commandline option to read status flags.

In the case of pending bus errors on some slcan adapters the read of the
status flags resets the adapter and clears the error LED.

This patch adds the commandline option to send the status read command to the
adapter as suggested by Thorsten Godau.

Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
slcan_attach.c