mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-27 17:42:04 +08:00
cabana: don't check for socketcan when not available (#34039)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user