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

pull/22564/head
Dean Lee 4 years ago committed by GitHub
parent ad32a2d27b
commit 1e78a06b84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      selfdrive/hardware/hw.h

@ -14,7 +14,7 @@ class HardwarePC : public HardwareNone {
public: public:
static std::string get_os_version() { return "openpilot for PC"; } static std::string get_os_version() { return "openpilot for PC"; }
static bool PC() { return true; } 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 #define Hardware HardwarePC
#endif #endif

Loading…
Cancel
Save