? ? ? ? {
? ? ? ? ? ? ushort PjLampHours = new ushort();
? ? ? ? ? ? ? ? ? ? ? ? ? ?
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? case 3: //Lamp
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? try
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? {
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? holder = data.ToString().Substring(3, 1);
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? //uShortHolder = (ushort)Convert.ToInt32(data.ToString().Substring(3, 1), 16);
?
?
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? if (debug > 0)
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? {
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? CrestronConsole.Print("\n\rtest holder = {0}", holder);
?
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? //CrestronConsole.Print("\n\rtest uShortholder = {0}", uShortHolder.ToString());
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? }
?
?
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? PjLampHours = (ushort)Convert.ToInt16(holder, 32);
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? //PjLampHours = (ushort)Convert.ToInt16(data.ToString().Substring(3, 1), 32);
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? //PjLampHours = (ushort)Convert.ToInt32(data.ToString().Substring(3, 1), 16);
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? PJLampStatusEvent(PjLampHours);
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? }
SIMPL# Print to Console:
? ? ? ? ? ? ? ? if (debug > 0) CrestronConsole.Print("\n\rCurrent PJ Settings: \n\rPjpowerState: {0}\n\rPjcurrentInput: {1}\n\rPjLampHours: {2}\n\rPjcurrentVolume: {3}", Convert.ToString(PjpowerState), Convert.ToString(PjcurrentInput), Convert.ToString(PjLampHours), Convert.ToString(PjcurrentVolume));
What I am seeing in console:
Current PJ Settings:?
PjpowerState: 0
PjcurrentInput: 0
PjLampHours: 0
PjcurrentVolume: 0