1
0
mirror of synced 2024-11-23 22:30:56 +01:00

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

File diff suppressed because it is too large Load Diff

View File

@ -4,7 +4,6 @@ using TMPro;
public class ConfigPanelComponent : MonoBehaviour
{
[SerializeField]
public string ConfigKeyName
{
get
@ -13,7 +12,6 @@ public class ConfigPanelComponent : MonoBehaviour
}
}
private string configKeyName;
[SerializeField]
public GameObject Widget
{
get

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: e8524a30a7c83304ea1ab0004c8927dd
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

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();
}
}

View File

@ -157,7 +157,7 @@ static unsigned int __stdcall mercury_io_touch_thread_proc(void *ctx)
//Sleep(1);
}
data.rgba[3] = 0x00; //IPC idle flag
FileMapping->RGBAData[3] = 0x00; //IPC idle flag
return 0;
}