private void ProcessCm11ATimeInit() { Logging.DebugPrint("== cm11a time init"); //Serial.Flush(); //var bytes = new byte[] { 0x9b, 0x13, 0x40, 0x0a, 0x48, 0x82, 0x60 }; //var bytes = new byte[] {0x9b, 0, 0, 0, 0, 1, 0x61}; var bytes = new byte[] { 0x9b }; Serial.Write(bytes, 0, bytes.Length);//has to be 42 bytes //var b = Serial.ReadByte();//get checksum - ignore //Serial.WriteByte(0);//checksum correct curCm11aInitStatus = cm11aInitStatus.AllInited; }
private void ProcessCm11AMacroInit() { ProcessCm11ATimeInit(); return; Logging.DebugPrint("== cm11a macro init"); Serial.WriteByte(0xfb); //respond var bytes = new byte[42]; //we don't have macros, so just send all zeros Serial.Write(bytes, 0, bytes.Length); //has to be 42 bytes Serial.ReadByte(); //get checksum - ignore Serial.WriteByte(0); //checksum correct curCm11aInitStatus = cm11aInitStatus.MacrosInited; }
private void ProcessCm11AMacroInit() { ProcessCm11ATimeInit(); return; Logging.DebugPrint("== cm11a macro init"); Serial.WriteByte(0xfb); //respond var bytes = new byte[42];//we don't have macros, so just send all zeros Serial.Write(bytes, 0, bytes.Length);//has to be 42 bytes Serial.ReadByte();//get checksum - ignore Serial.WriteByte(0);//checksum correct curCm11aInitStatus = cm11aInitStatus.MacrosInited; }