fix mercuryio flag issue

This commit is contained in:
xpeng
2022-11-08 16:34:53 +01:00
parent f3c40f4409
commit 431a604d9b
5 changed files with 13 additions and 1684 deletions
+4 -1
View File
@@ -67,6 +67,7 @@ public class LightManager : MonoBehaviour
}
private void CheckIPCState(byte[] data)
{
Debug.Log(data[3]);
if (data[3] == 0)
isIPCIdle = true;
else
@@ -93,7 +94,9 @@ public class LightManager : MonoBehaviour
if (bytes != null && bytes.Length == 1920)
{
CheckIPCState(bytes);
RGBColor2D.LoadRawTextureData(bytes);
var newbytes = new byte[1920];
newbytes = bytes;
RGBColor2D.LoadRawTextureData(newbytes);
RGBColor2D.Apply();
}
}