MCPcopy Create free account
hub / github.com/SlimeVR/SlimeVR-Tracker-ESP / maybeRequestFeatureFlags

Method maybeRequestFeatureFlags

src/network/connection.cpp:518–530  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

516}
517
518void Connection::maybeRequestFeatureFlags() {
519 if (m_ServerFeatures.isAvailable() || m_FeatureFlagsRequestAttempts >= 15) {
520 return;
521 }
522
523 if (millis() - m_FeatureFlagsRequestTimestamp < 500) {
524 return;
525 }
526
527 sendFeatureFlags();
528 m_FeatureFlagsRequestTimestamp = millis();
529 m_FeatureFlagsRequestAttempts++;
530}
531
532bool Connection::isSensorStateUpdated(int i, std::unique_ptr<Sensor>& sensor) {
533 return (m_AckedSensorState[i] != sensor->getSensorState()

Callers

nothing calls this directly

Calls 1

isAvailableMethod · 0.80

Tested by

no test coverage detected