mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-08-05 16:25:41 +08:00
allow PC to emulate TICI with TICI=1
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user