projects
/
elmcan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
489643c
)
Clean up types and unused vars in struct elmcan
author
norly
<ny-git@enpas.org>
Wed, 16 Mar 2022 21:29:58 +0000
(22:29 +0100)
committer
norly
<ny-git@enpas.org>
Wed, 16 Mar 2022 21:29:58 +0000
(22:29 +0100)
module/elmcan.c
patch
|
blob
|
history
diff --git
a/module/elmcan.c
b/module/elmcan.c
index ed652de890761db84a91306407c0d06093895a77..dd8889bf37d74d7859acb6ab046c627e5dc5d865 100644
(file)
--- a/
module/elmcan.c
+++ b/
module/elmcan.c
@@
-127,16
+127,14
@@
struct elmcan {
ELM327_STATE_RECEIVING,
} state;
ELM327_STATE_RECEIVING,
} state;
-
int
drop_next_line;
+
bool
drop_next_line;
/* The CAN frame and config the ELM327 is sending/using,
* or will send/use after finishing all cmds_todo
*/
struct can_frame can_frame_to_send;
/* The CAN frame and config the ELM327 is sending/using,
* or will send/use after finishing all cmds_todo
*/
struct can_frame can_frame_to_send;
- unsigned short can_config;
- unsigned long can_bitrate;
- unsigned char can_bitrate_divisor;
- int silent_monitoring;
+ u16 can_config;
+ u8 can_bitrate_divisor;
/* Things we have yet to send */
char **next_init_cmd;
/* Things we have yet to send */
char **next_init_cmd;