修改bug
This commit is contained in:
1 parent
30e09c9c7a
commit
0a4925bb39
5 files changed
+19
-14
No files matched your search
@@ -222,9 +222,8 @@ public static class App
|
||||
{
|
||||
InitLanguage();
|
||||
#if !UNITY_EDITOR
|
||||
//测试服务器
|
||||
//Host = "http://pf.juze.pro/";
|
||||
Host = "http://192.168.0.101:5083/";
|
||||
//测试服务器 Host = "http://192.168.0.101:5083/";
|
||||
Host = "http://pf.juze.pro/";
|
||||
UdpAddress = new IPEndPoint(IPAddress.Parse("47.97.84.8"), 21000);
|
||||
TcpAddress = new IPEndPoint(IPAddress.Parse("47.97.84.8"), 21001);
|
||||
//线上
|
||||
@@ -235,7 +234,7 @@ public static class App
|
||||
//Host = "http://192.168.0.101:5087/";
|
||||
//UdpAddress = new IPEndPoint(IPAddress.Parse("192.168.0.97"), 11000);
|
||||
//TcpAddress = new IPEndPoint(IPAddress.Parse("192.168.0.102"), 21001);
|
||||
//Debug.unityLogger.logEnabled = false;
|
||||
Debug.unityLogger.logEnabled = false;
|
||||
#else
|
||||
//Host = "http://pf.juze.pro/";
|
||||
//Host = "http://192.168.0.101:5087/";
|
||||
|
||||
@@ -154,13 +154,13 @@ namespace Assets.Scripts.Devices.Ble.Devices
|
||||
{
|
||||
if (C2RowerData.IsEnabled == true)
|
||||
{
|
||||
//等对csafe协议研究透彻后写
|
||||
if (this.c2Control != null)
|
||||
{
|
||||
Debug.Log("发送重置命令" + this.c2Control.ToString());
|
||||
hwInterface.WriteCharacteristic(this.c2Control, new byte[] { 0xF1, 0x80, 0x80, 0xF2 });
|
||||
//hwInterface.WriteCharacteristic(this.c2Control, new byte[] { 0xF1, 0x81, 0x81, 0xF2 });
|
||||
}
|
||||
////等对csafe协议研究透彻后写
|
||||
//if (this.c2Control != null)
|
||||
//{
|
||||
// Debug.Log("发送重置命令" + this.c2Control.ToString());
|
||||
// hwInterface.WriteCharacteristic(this.c2Control, new byte[] { 0xF1, 0x80, 0x80, 0xF2 });
|
||||
// //hwInterface.WriteCharacteristic(this.c2Control, new byte[] { 0xF1, 0x81, 0x81, 0xF2 });
|
||||
//}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -22,7 +22,6 @@ public class ConnectDeviceModal : PFUIPanel
|
||||
}
|
||||
set
|
||||
{
|
||||
//Debug.Log(value);
|
||||
mSensorType = value;
|
||||
var deviceInfoStr = Utils.deviceDict[value.ToString()];
|
||||
if (deviceInfoStr != null)
|
||||
@@ -30,7 +29,7 @@ public class ConnectDeviceModal : PFUIPanel
|
||||
var deviceInfo = deviceInfoStr.Split('|');
|
||||
if (deviceInfo.Length == 2)
|
||||
{
|
||||
Title.text = deviceInfo[0];
|
||||
Title.text = App.GetLocalString(deviceInfo[0]);
|
||||
Logo.sprite = Resources.Load<Sprite>(deviceInfo[1]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -98,6 +98,12 @@ public class RowerTaskPanel : PFUIPanel
|
||||
Utils.showToast(null, "Minimum mileage is 100M.", isOnly: true);
|
||||
return;
|
||||
}
|
||||
|
||||
if (rowerType.type == 2 && rowerType.value < 20)
|
||||
{
|
||||
Utils.showToast(null, "Minimum time is 20s.", isOnly: true);
|
||||
return;
|
||||
}
|
||||
if (callBack != null)
|
||||
{
|
||||
callBack.Invoke(rowerType);
|
||||
|
||||
Reference in new issue
Block a user