public static void CheckBattery(object o) { new Thread(() => { byte[] batt = BitConverter.GetBytes((ushort)(jc.GetBattery() * 10)); processPacket.Invoke(decaMoveChannel, new object[] { new byte[] { 0x62, 0x62, batt[0], batt[1] } }); }).Start(); }
public static void CheckBattery(object o) { new Thread(() => { byte[] batt = BitConverter.GetBytes((ushort)(jc.GetBattery() * 10)); processPacket.Invoke(decaMoveChannel, new object[] { new byte[] { 0x62, 0x62, batt[0], batt[1] } }); }).Start(); }