|
|
@@ -122,9 +122,12 @@ public class BluetoothAim : MonoBehaviour
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- CallDelay(1, OpenReceiveData);
|
|
|
- // CallDelay(1, OpenInfrared);
|
|
|
- // CallDelay(2, OpenReceiveData);
|
|
|
+ if (DebugForDevice.ins) {
|
|
|
+ CallDelay(1, OpenInfrared);
|
|
|
+ CallDelay(2, OpenReceiveData);
|
|
|
+ } else {
|
|
|
+ CallDelay(1, OpenReceiveData);
|
|
|
+ }
|
|
|
};
|
|
|
bluetoothHelper.OnConnectionFailed += (BluetoothHelper helper) =>
|
|
|
{
|
|
|
@@ -136,7 +139,7 @@ public class BluetoothAim : MonoBehaviour
|
|
|
hasData = true;
|
|
|
byte[] bytes = value;
|
|
|
// Log(String.Join(",", bytes));
|
|
|
- // DebugForDevice.OnDataReceived(bytes);
|
|
|
+ if (DebugForDevice.ins) DebugForDevice.ins.OnDataReceived(bytes);
|
|
|
BluetoothClient.UploadData(0, bytes);
|
|
|
if (AimHandler.ins)
|
|
|
{
|