Add version verification disable switch in photonlib (#437)

This commit is contained in:
Matt
2022-02-28 07:37:52 -05:00
committed by GitHub
parent 5655ca6890
commit 9090aa6bcc
5 changed files with 18 additions and 0 deletions

View File

@@ -100,6 +100,8 @@ void PhotonCamera::SetLEDMode(LEDMode mode) {
}
void PhotonCamera::VerifyVersion() const {
if (!PhotonCamera::VERSION_CHECK_ENABLED) return;
const std::string& versionString = versionEntry.GetString("");
if (versionString.empty()) {
std::string path_ = path;