diff options
-rw-r--r-- | module/elmcan.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/module/elmcan.c b/module/elmcan.c index 8864196..894bfac 100644 --- a/module/elmcan.c +++ b/module/elmcan.c @@ -374,15 +374,6 @@ static inline void elm327_hw_failure(struct elmcan *elm) * (assumes elm->lock taken) * ************************************************************************/ -static bool elm327_is_ready_char(char c) -{ - /* Bits 0xc0 are sometimes set (randomly), hence the mask. - * Probably bad hardware. - */ - return (c & 0x3f) == ELM327_READY_CHAR; -} - - static void elm327_parse_error(struct elmcan *elm, int len) { struct can_frame frame; @@ -680,6 +671,15 @@ static void elm327_handle_prompt(struct elmcan *elm) } +static bool elm327_is_ready_char(char c) +{ + /* Bits 0xc0 are sometimes set (randomly), hence the mask. + * Probably bad hardware. + */ + return (c & 0x3f) == ELM327_READY_CHAR; +} + + static void elm327_drop_bytes(struct elmcan *elm, int i) { memmove(&elm->rxbuf[0], &elm->rxbuf[i], sizeof(elm->rxbuf) - i); |