Skip to content

Commit

Permalink
Set default back to BT.
Browse files Browse the repository at this point in the history
Fix for ELMulator class constructor.
  • Loading branch information
jimwhitelaw committed May 8, 2024
1 parent 08ac2c5 commit a58d9de
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/ATCommands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@ void ATCommands::ATD() {
// reset all
void ATCommands::ATZ() {
connection->setToDefaults();
connection->writeTo(ID);
connection->writeEndOK();
}

// Print the version ID
void ATCommands::ATI() {
connection->setStatus(connection->READY);
connection->writeTo(ID);
connection->writeEndOK();
}
Expand Down
4 changes: 2 additions & 2 deletions src/ELMulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ ELMulator::ELMulator()
elmRequest = "";
}
#else
ELMulator::ELMulator(uint32_t baudRate, uint8_t rxPin, uint8_t txPin)
ELMulator::ELMulator()
{
_connection = new OBDSerialComm(baudRate, rxPin, txPin);
_connection = new OBDSerialComm();
_atProcessor = new ATCommands(_connection);
_pidProcessor = new PidProcessor(_connection);
_lastCommand = "";
Expand Down
4 changes: 2 additions & 2 deletions src/definitions.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// false == We are using hardware that has BT module attached via GPIO pins
#define BLUETOOTH_BUILTIN true

#define USE_WIFI true
#define USE_WIFI false

#define DO_DEBUG true
#define DEBUG(x) do {if (DO_DEBUG) { Serial.println(x); } } while (0)
Expand All @@ -19,7 +19,7 @@
#define N_CHARS_IN_BYTE 2

// Device ID
#define ID "ELM327 - ELMulator V1.0.0"
#define ID "ELM327 / ELMulator V1.3.0"
#define DESC "ELMulator OBD2 Arduino library, based on ELM327 protocol"
#define PROTOCOL "6" // canbus 500k 11 bit protocol id for elm.

Expand Down

0 comments on commit a58d9de

Please sign in to comment.