allow PC to emulate TICI with TICI=1

old-commit-hash: 362f067c9c1c608dbe5adb7d318bab1fa8b9760e
This commit is contained in:
George Hotz
2021-09-14 10:48:43 -07:00
parent a84744e158
commit 73a4b05065
+1
View File
@@ -14,6 +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); }
};
#define Hardware HardwarePC
#endif