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

old-commit-hash: 1e78a06b840b607b8fcd27b626d8cbd90c0bfc9e
This commit is contained in:
Dean Lee
2021-10-15 05:23:05 +08:00
committed by GitHub
parent 16736a0186
commit 78f3f21f90
+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