Skip to content

Commit

Permalink
Fixed ADB persistance in developer panel
Browse files Browse the repository at this point in the history
  • Loading branch information
amoghmunikote authored Dec 6, 2024
1 parent 7061e89 commit 9b9d634
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfdrive/ui/qt/offroad/developer_panel.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ DeveloperPanel::DeveloperPanel(SettingsWindow *parent) : ListWidget(parent) {
});
addItem(longManeuverToggle);

adbToggle = new ParamControl("Adb", tr("Android Debug Bridge"), tr("Enable ADB"), "");
adbToggle = new ParamControl("AdbEnabled", tr("Android Debug Bridge"), tr("Enable ADB"), "");
QObject::connect(adbToggle, &ParamControl::toggleFlipped, [=](bool state) {
if (state) {
QProcess::startDetached("sh", {"-c", "setprop service.adb.tcp.port 5555 && sudo systemctl start adbd"});
Expand Down

0 comments on commit 9b9d634

Please sign in to comment.