From 1d6a60338aa017a522e0e4d6a62d69045c82feb7 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 17 Feb 2024 19:19:37 -0600 Subject: [PATCH] wip --- selfdrive/ui/qt/text.cc | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/selfdrive/ui/qt/text.cc b/selfdrive/ui/qt/text.cc index fd06c42..4143fee 100644 --- a/selfdrive/ui/qt/text.cc +++ b/selfdrive/ui/qt/text.cc @@ -59,16 +59,17 @@ int main(int argc, char *argv[]) { QObject::connect(btnupdate, &QPushButton::clicked, [=]() { QProcess process; label->setText("Attempting to connect to wifi"); - wifi = new WifiManager(null); - connect(wifi, &WifiManager::refreshSignal, [=]() { - label->setText("Performing update"); - process.setWorkingDirectory("/data/openpilot/"); - process.start("/bin/bash", QStringList{"-c", "update.sh"}); - process.waitForFinished(); - label->setText("Rebooting"); - Hardware::reboot(); - }); - wifi->start(); + // TODO: make this work, then copy the compiled binary into git + // wifi = new WifiManager(null); + // connect(wifi, &WifiManager::refreshSignal, [=]() { + // label->setText("Performing update"); + // process.setWorkingDirectory("/data/openpilot/"); + // process.start("/bin/bash", QStringList{"-c", "update.sh"}); + // process.waitForFinished(); + // label->setText("Rebooting"); + // Hardware::reboot(); + // }); + // wifi->start(); }); #else btnupdate->setText(QObject::tr("Exit"));