HardwarePC::TICI() : use util::getenv (#22532)

This commit is contained in:
Dean Lee
2021-10-15 05:23:05 +08:00
committed by GitHub
parent ad32a2d27b
commit 1e78a06b84
+1 -1
View File
@@ -14,7 +14,7 @@ class HardwarePC : public HardwareNone {
public:
static std::string get_os_version() { return "openpilot for PC"; }
static bool PC() { return true; }
static bool TICI() { const char *tici = getenv("TICI"); return (tici != nullptr) && (strcmp(tici, "1") == 0); }
static bool TICI() { return util::getenv("TICI", 0) == 1; }
};
#define Hardware HardwarePC
#endif