ecam toggle: clear calibration (#20987)

* ecam toggle: clear calibration

* whitespace

* no more reboot needed
pull/20988/head
Willem Melching 4 years ago committed by GitHub
parent 466f5f091e
commit 9bb2209c8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      selfdrive/ui/qt/offroad/settings.cc

@ -71,9 +71,13 @@ TogglesPanel::TogglesPanel(QWidget *parent) : QWidget(parent) {
if (Hardware::TICI()) {
toggles.append(new ParamControl("EnableWideCamera",
"Enable use of Wide Angle Camera",
"Use wide angle camera for driving and ui. Only takes effect after reboot.",
"Use wide angle camera for driving and ui.",
"../assets/offroad/icon_openpilot.png",
this));
QObject::connect(toggles.back(), &ToggleControl::toggleFlipped, [=](bool state) {
Params().remove("CalibrationParams");
});
toggles.append(new ParamControl("EnableLteOnroad",
"Enable LTE while onroad",
"",

Loading…
Cancel
Save