public static async Task <bool> WriteEeprom(this ISerial serial, Eeprom eepromValue) { var ee = new EepromV1 { Values = eepromValue.Values }; if (ee.IsValid) { eepromValue.WriteTo(ee); await File.WriteAllLinesAsync(Environment.ExpandEnvironmentVariables(@"%TEMP%\EepromWrite.nc"), ee.ToGCode()); await serial.WriteEepromValues(ee); return(true); } return(false); }