Adding volume to server data
This commit is contained in:
parent
2125015f3e
commit
98093f15d2
3 changed files with 7 additions and 1 deletions
|
|
@ -367,6 +367,7 @@ namespace MatterHackers.MatterControl.DataStorage
|
|||
public string Note { get; set; }
|
||||
|
||||
public string DeviceToken { get; set; }
|
||||
public double VolumeMm3 { get; internal set; }
|
||||
|
||||
public void CommitAndPushToServer()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -2194,6 +2194,11 @@ Make sure that your printer is turned on. Some printers will appear to be connec
|
|||
DeviceToken = this.Printer.Settings.GetValue(SettingsKey.device_token),
|
||||
};
|
||||
|
||||
if(gCodeFileSwitcher?.GCodeFile is GCodeMemoryFile memoryFile)
|
||||
{
|
||||
ActivePrintTask.VolumeMm3 = memoryFile.GetFilamentCubicMm(Printer.Settings.GetValue<double>(SettingsKey.filament_diameter));
|
||||
}
|
||||
|
||||
ActivePrintTask.CommitAndPushToServer();
|
||||
|
||||
Task.Run(() => this.SyncProgressToDB(printingCancellation.Token));
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 515ca31d1a21ddd03bdade5b4790e9e78d706a48
|
||||
Subproject commit ce51db3c0ca8ce040aeca47d8c79dac0727fe53d
|
||||
Loading…
Add table
Add a link
Reference in a new issue