mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-08-31 10:58:28 +00:00
fix: Add debug logs for touchscreen slot selection in controller
Improved logging to indicate which touchscreen slot is used during Mpc4TouchpanelController initialization. Updated error log to report processor.TouchscreenType for clearer diagnostics.
This commit is contained in:
parent
8c56623641
commit
25693c7071
1 changed files with 10 additions and 1 deletions
|
|
@ -30,24 +30,33 @@ namespace PepperDash.Essentials.Core.Touchpanels
|
||||||
{
|
{
|
||||||
if (processor.MPC4x102TouchscreenSlot != null)
|
if (processor.MPC4x102TouchscreenSlot != null)
|
||||||
{
|
{
|
||||||
|
Debug.LogMessage(LogEventLevel.Information, this, "Using MPC4x102TouchscreenSlot");
|
||||||
_touchpanel = processor.MPC4x102TouchscreenSlot;
|
_touchpanel = processor.MPC4x102TouchscreenSlot;
|
||||||
}
|
}
|
||||||
else if (processor.MPC4x201TouchscreenSlot != null)
|
else if (processor.MPC4x201TouchscreenSlot != null)
|
||||||
{
|
{
|
||||||
|
Debug.LogMessage(LogEventLevel.Information, this, "Using MPC4x201TouchscreenSlot");
|
||||||
_touchpanel = processor.MPC4x201TouchscreenSlot;
|
_touchpanel = processor.MPC4x201TouchscreenSlot;
|
||||||
}
|
}
|
||||||
else if (processor.MPC4x301TouchscreenSlot != null)
|
else if (processor.MPC4x301TouchscreenSlot != null)
|
||||||
{
|
{
|
||||||
|
Debug.LogMessage(LogEventLevel.Information, this, "Using MPC4x301TouchscreenSlot");
|
||||||
_touchpanel = processor.MPC4x301TouchscreenSlot;
|
_touchpanel = processor.MPC4x301TouchscreenSlot;
|
||||||
}
|
}
|
||||||
else if (processor.MPC4x302TouchscreenSlot != null)
|
else if (processor.MPC4x302TouchscreenSlot != null)
|
||||||
{
|
{
|
||||||
|
Debug.LogMessage(LogEventLevel.Information, this, "Using MPC4x302TouchscreenSlot");
|
||||||
_touchpanel = processor.MPC4x302TouchscreenSlot;
|
_touchpanel = processor.MPC4x302TouchscreenSlot;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Debug.LogMessage(LogEventLevel.Information, this, "Using ControllerTouchScreenSlotDevice");
|
||||||
|
_touchpanel = processor.ControllerTouchScreenSlotDevice as MPC3Basic;
|
||||||
|
}
|
||||||
|
|
||||||
if (_touchpanel == null)
|
if (_touchpanel == null)
|
||||||
{
|
{
|
||||||
Debug.LogMessage(LogEventLevel.Error, this, "Failed to construct MPC4 Touchpanel Controller with key {0}, check configuration, processor is type: {1}", key, processor.ControllerTouchScreenSlotDevice?.GetType().FullName ?? "null");
|
Debug.LogMessage(LogEventLevel.Error, this, "Failed to construct MPC4 Touchpanel Controller with key {0}, check configuration, processor is type: {1}", key, processor.TouchscreenType);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue