public void Write(BinaryWriter r) { byte b1 = 0; b1 = DataflashManager.SetBit(b1, 1, Off); b1 = DataflashManager.SetBit(b1, 2, Keylock); b1 = DataflashManager.SetBit(b1, 3, Flipped); b1 = DataflashManager.SetBit(b1, 4, NoLogo); b1 = DataflashManager.SetBit(b1, 5, AnalogClock); b1 = DataflashManager.SetBit(b1, 6, VirtualCom); b1 = DataflashManager.SetBit(b1, 7, Storage); b1 = DataflashManager.SetBit(b1, 8, DebugEnable); byte b2 = 0; b2 = DataflashManager.SetBit(b2, 1, X32Off); b2 = DataflashManager.SetBit(b2, 2, TemperatureDominant); b2 = DataflashManager.SetBit(b2, 3, Step1W); b2 = DataflashManager.SetBit(b2, 4, DigitalClock); b2 = DataflashManager.SetBit(b2, 5, BatteryPercent); b2 = DataflashManager.SetBit(b2, 6, PreheatPercent); b2 = DataflashManager.SetBit(b2, 7, WakeUpByPlusMinus); r.Write(new byte[] { b1, b2, 0, 0 }); }