Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions CanHacker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -623,9 +623,9 @@ CanHacker::ERROR CanHacker::receiveCloseCommand(const char *buffer, const int le
return ERROR_INVALID_COMMAND;
}

if (!isConnected()) {
return writeStream(BEL);
}
// if (!isConnected()) { // Desktop canhacker executes this command before connecting, after "v"
// return writeStream(BEL);
// }
ERROR error = disconnectCan();
if (error != ERROR_OK) {
return error;
Expand Down
6 changes: 6 additions & 0 deletions examples/usb_cdc/usb_cdc/usb_cdc.ino
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,14 @@ void loop() {
if (digitalRead(INT_PIN) == LOW) {
canHacker->processInterrupt();
}

// uncomment that lines for Leonardo, Pro Micro or Esplora
// if (Serial.available()) {
// lineReader->process();
// }
}

// serialEvent handler not supported by Leonardo, Pro Micro and Esplora
void serialEvent() {
lineReader->process();
}