@ -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");
@ -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; }
};
@ -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; }
@ -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");
}
@ -40,7 +40,7 @@ struct DecoderManager {
std::unique_ptr<VideoDecoder> decoder;
#ifndef __APPLE__
if (Hardware::TICI() && hw_decoder) {
if (Hardware::IS_TICI() && hw_decoder) {
decoder = std::make_unique<QcomVideoDecoder>();
} else
#endif