Skip to content

Commit

Permalink
cabana: don't check for socketcan when not available (#34039)
Browse files Browse the repository at this point in the history
  • Loading branch information
pbassut authored Nov 16, 2024
1 parent 863d86c commit 22d19f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/cabana/cabana.cc
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ int main(int argc, char *argv[]) {
qWarning() << e.what();
return 0;
}
} else if (cmd_parser.isSet("socketcan")) {
} else if (SocketCanStream::available() && cmd_parser.isSet("socketcan")) {
stream = new SocketCanStream(&app, {.device = cmd_parser.value("socketcan")});
} else {
uint32_t replay_flags = REPLAY_FLAG_NONE;
Expand Down

0 comments on commit 22d19f2

Please sign in to comment.