allow PC to emulate TICI with TICI=1

pull/22231/head
George Hotz 2021-09-14 10:48:43 -07:00
parent f07e1ae99e
commit 362f067c9c
1 changed files with 1 additions and 0 deletions

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