mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-08-05 08:16:06 +08:00
HardwarePC::TICI() : use util::getenv (#22532)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user