public void calibrateDevices() { if (operatingState == ConnectionState.CONNECTED) { if (EnfluxVRSuit.performCalibration(connectedDevices.Count) < 1) { operatingState = ConnectionState.CALIBRATING; } else { Debug.Log("Problem running calibration"); } } else { Debug.Log("Unable to calibrate, program is in wrong state " + Enum.GetName(typeof(ConnectionState), operatingState)); } }
public void calibrateDevices() { if (operatingState == ConnectionState.CONNECTED) { StringBuilder returnBuffer = new StringBuilder(EnfluxVRSuit.MESSAGESIZE); if (EnfluxVRSuit.performCalibration(connectedDevices.Count, returnBuffer) < 1) { operatingState = ConnectionState.CALIBRATING; } else { Debug.Log(returnBuffer); } } else { Debug.Log("Unable to calibrate, program is in wrong state " + Enum.GetName(typeof(ConnectionState), operatingState)); } }