Skip to content
Open
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: 4 additions & 2 deletions ED4scan/ED4scan_CLI.ino
Original file line number Diff line number Diff line change
Expand Up @@ -390,11 +390,13 @@ void set_cmd(uint8_t arg_cnt, char **args) {
} else{
cmdOK = 0;
}
} else if (BMS.KeyState != 0) {
cmdOK = -2;
}
}
if (cmdOK == 0) Serial.println(F("CMD: failed"));
if (cmdOK < 0) Serial.println(F("CMD: wrong format"));

if (cmdOK == -1) Serial.println(F("CMD: wrong format"));
if (cmdOK == -2) Serial.println(F("CMD: Ignition key in wrong position"));
}

void init_cmd_prompt() {
Expand Down