|
@@ -72,9 +72,9 @@ public class ArrowSerialPort : MonoBehaviour
|
|
|
//应用启动 间隔十秒请求一次设备信息
|
|
//应用启动 间隔十秒请求一次设备信息
|
|
|
CancelInvoke("RequestDeviceIno");
|
|
CancelInvoke("RequestDeviceIno");
|
|
|
InvokeRepeating("RequestDeviceIno", 0f, 10f);
|
|
InvokeRepeating("RequestDeviceIno", 0f, 10f);
|
|
|
- LOG($"{PortName} 串口打开成功!");
|
|
|
|
|
- //激光默认打开
|
|
|
|
|
- RequestLightState(true);
|
|
|
|
|
|
|
+ //LOG($"{PortName} 串口打开成功!");
|
|
|
|
|
+ ////激光默认打开
|
|
|
|
|
+ //RequestLightState(true);
|
|
|
}
|
|
}
|
|
|
else if (msg.Equals("CLOSED"))//串口断开
|
|
else if (msg.Equals("CLOSED"))//串口断开
|
|
|
{
|
|
{
|