From a169be18d3fdcb3ef8317a63a89d8becadabfad8 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Thu, 25 Sep 2025 19:56:43 -0700 Subject: [PATCH] is tici --- selfdrive/ui/qt/offroad/settings.cc | 2 +- system/hardware/base.h | 3 +-- system/hardware/pc/hardware.h | 3 +-- system/hardware/tici/hardware.h | 3 +-- tools/replay/framereader.cc | 2 +- 5 files changed, 5 insertions(+), 8 deletions(-) diff --git a/selfdrive/ui/qt/offroad/settings.cc b/selfdrive/ui/qt/offroad/settings.cc index 96734d69d9..b37173997f 100644 --- a/selfdrive/ui/qt/offroad/settings.cc +++ b/selfdrive/ui/qt/offroad/settings.cc @@ -253,7 +253,7 @@ DevicePanel::DevicePanel(SettingsWindow *parent) : ListWidget(parent) { }); addItem(retrainingBtn); - if (Hardware::TICI()) { + if (Hardware::IS_TICI()) { auto regulatoryBtn = new ButtonControl(tr("Regulatory"), tr("VIEW"), ""); connect(regulatoryBtn, &ButtonControl::clicked, [=]() { const std::string txt = util::read_file("../assets/offroad/fcc.html"); diff --git a/system/hardware/base.h b/system/hardware/base.h index df9700a017..4ca981cdd0 100644 --- a/system/hardware/base.h +++ b/system/hardware/base.h @@ -32,6 +32,5 @@ public: static void set_ssh_enabled(bool enabled) {} static bool PC() { return false; } - static bool TICI() { return false; } - static bool AGNOS() { return false; } + static bool IS_TICI() { return false; } }; diff --git a/system/hardware/pc/hardware.h b/system/hardware/pc/hardware.h index 978dd771c8..d1490d624e 100644 --- a/system/hardware/pc/hardware.h +++ b/system/hardware/pc/hardware.h @@ -10,6 +10,5 @@ public: static std::string get_name() { return "pc"; } static cereal::InitData::DeviceType get_device_type() { return cereal::InitData::DeviceType::PC; } static bool PC() { return true; } - static bool TICI() { return util::getenv("TICI", 0) == 1; } - static bool AGNOS() { return util::getenv("TICI", 0) == 1; } + static bool IS_TICI() { return util::getenv("TICI", 0) == 1; } }; diff --git a/system/hardware/tici/hardware.h b/system/hardware/tici/hardware.h index ed8a7e7d17..a56eb201ba 100644 --- a/system/hardware/tici/hardware.h +++ b/system/hardware/tici/hardware.h @@ -13,8 +13,7 @@ class HardwareTici : public HardwareNone { public: - static bool TICI() { return true; } - static bool AGNOS() { return true; } + static bool IS_TICI() { return true; } static std::string get_os_version() { return "AGNOS " + util::read_file("/VERSION"); } diff --git a/tools/replay/framereader.cc b/tools/replay/framereader.cc index e9cd090446..8a2edfe799 100644 --- a/tools/replay/framereader.cc +++ b/tools/replay/framereader.cc @@ -40,7 +40,7 @@ struct DecoderManager { std::unique_ptr decoder; #ifndef __APPLE__ - if (Hardware::TICI() && hw_decoder) { + if (Hardware::IS_TICI() && hw_decoder) { decoder = std::make_unique(); } else #endif