Skip to content

Commit 244e72b

Browse files
committed
Adding SET_ALL_TO_DEFAULTS (AT D) communication configuration parameter
1 parent ed2a661 commit 244e72b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/ELMduino.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,16 +84,19 @@ bool ELM327::initializeELM(const char& protocol)
8484
{
8585
char command[10] = { '\0' };
8686
connected = false;
87-
87+
88+
sendCommand(SET_ALL_TO_DEFAULTS);
89+
delay(100);
90+
8891
sendCommand(RESET_ALL);
89-
delay(100);
92+
delay(100);
9093

9194
sendCommand(ECHO_OFF);
9295
delay(100);
9396

9497
sendCommand(PRINTING_SPACES_OFF);
9598
delay(100);
96-
99+
97100
sendCommand(ALLOW_LONG_MESSAGES);
98101
delay(100);
99102

0 commit comments

Comments
 (0)