Skip to content

Commit

Permalink
s
Browse files Browse the repository at this point in the history
  • Loading branch information
silverchris committed Nov 9, 2020
1 parent c1f5052 commit 0c81924
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mazda/wireless/wireless.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ void BCAClient::ConnectionStatusResp(
const uint32_t &btDeviceId,
const uint32_t &status,
const ::DBus::Struct <std::vector<uint8_t>> &terminalPath) {
if (serviceId == 15) {
if (serviceId == 15 && connStatus == 3) {
char *pty = (char *) malloc(terminalPath._1.size());
std::copy(terminalPath._1.begin(), terminalPath._1.end(), pty);
logd("\tPTY: %s\n", pty);
Expand Down

0 comments on commit 0c81924

Please sign in to comment.