Skip to content

Commit

Permalink
working (#643)
Browse files Browse the repository at this point in the history
  • Loading branch information
UnchartedBull authored May 15, 2020
1 parent 02fa894 commit 7be368b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/app/print-control/print-control.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@ export class PrintControlComponent {
public feedrate: number;
public flowrate: number;

public constructor(private jobService: JobService, private printerService: PrinterService) {}
public constructor(private jobService: JobService, private printerService: PrinterService) {
this.temperatureHotend = 0;
this.temperatureHeatbed = 0;
this.flowrate = 100;
this.feedrate = 100;
}

public isClickOnPreview(event: MouseEvent): boolean {
const previewSwitchMin = window.innerWidth * 0.08;
Expand Down Expand Up @@ -99,10 +104,6 @@ export class PrintControlComponent {
}

private loadData(): void {
this.temperatureHotend = 0;
this.temperatureHeatbed = 0;
this.flowrate = 100;
this.feedrate = 100;
this.printerService
.getObservable()
.pipe(take(1))
Expand Down

0 comments on commit 7be368b

Please sign in to comment.