diff --git a/selfdrive/ui/qt/body.cc b/selfdrive/ui/qt/body.cc index 3296b13..b3e93bc 100644 --- a/selfdrive/ui/qt/body.cc +++ b/selfdrive/ui/qt/body.cc @@ -60,7 +60,7 @@ BodyWindow::BodyWindow(QWidget *parent) : QWidget(parent) { } )"); - notifier = new QSocketNotifier(fileno(stdin), QSocketNotifier::Read); + // notifier = new QSocketNotifier(fileno(stdin), QSocketNotifier::Read); QObject::connect(uiState(), &UIState::uiUpdate, this, &BodyWindow::updateState); } @@ -115,11 +115,11 @@ void BodyWindow::updateState(const UIState &s) { // } // } -// void BodyWindow::offroadTransition(bool offroad) { +void BodyWindow::offroadTransition(bool offroad) { // btn->setChecked(true); // btn->setEnabled(true); // fuel_filter.reset(1.0); -// } +} // void BodyWindow::updateState(const UIState &s) { // if (!isVisible()) { diff --git a/selfdrive/ui/qt/body.h b/selfdrive/ui/qt/body.h index 9d9584b..adf740f 100644 --- a/selfdrive/ui/qt/body.h +++ b/selfdrive/ui/qt/body.h @@ -40,6 +40,10 @@ public: BodyWindow(QWidget* parent = 0); private: void paintEvent(QPaintEvent*) override; +private slots: + void updateState(const UIState &s); + void offroadTransition(bool onroad); +}; }; // bool charging = false;