projects
/
elmcan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
89630db
)
Comments
author
norly
<ny-git@enpas.org>
Mon, 25 Feb 2019 15:25:27 +0000
(16:25 +0100)
committer
norly
<ny-git@enpas.org>
Mon, 25 Feb 2019 15:28:22 +0000
(16:28 +0100)
module/elmcan.c
patch
|
blob
|
history
diff --git
a/module/elmcan.c
b/module/elmcan.c
index 0eb4fe866398cb3f8ac01c65c3f45e5eb9562bf7..ef6fc6db3106c929b2343196dfe9654d8e8b3c51 100644
(file)
--- a/
module/elmcan.c
+++ b/
module/elmcan.c
@@
-194,7
+194,11
@@
static void elm327_send(struct elmcan *elm, const void *buf, size_t len)
}
}
-/* Take the ELM327 out of almost any state and back into command mode. */
+/* Take the ELM327 out of almost any state and back into command mode.
+ * We send ELM327_MAGIC_CHAR which will either abort any running
+ * operation, or be echoed back to us in case we're already in command
+ * mode.
+ */
static void elm327_kick_into_cmd_mode(struct elmcan *elm)
{
if (elm->state != ELM_GETMAGICCHAR && elm->state != ELM_GETPROMPT) {
static void elm327_kick_into_cmd_mode(struct elmcan *elm)
{
if (elm->state != ELM_GETMAGICCHAR && elm->state != ELM_GETPROMPT) {
@@
-1254,12
+1258,6
@@
static struct tty_ldisc_ops elmcan_ldisc = {
-
-
- /************************************************************************
- * Module init/exit *
- ************************************************************************/
-
static int __init elmcan_init(void)
{
int status;
static int __init elmcan_init(void)
{
int status;