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

old-commit-hash: 1e78a06b84
commatwo_master
Dean Lee 4 years ago committed by GitHub
parent 16736a0186
commit 78f3f21f90
  1. 2
      selfdrive/hardware/hw.h

@ -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

Loading…
Cancel
Save