Skip to content

Commit

Permalink
Fix printing screen not shown (#2591)
Browse files Browse the repository at this point in the history
  • Loading branch information
UnchartedBull authored Feb 1, 2022
1 parent cf23923 commit 5771af6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/services/socket/socket.octoprint.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,14 +187,14 @@ export class OctoPrintSocketService implements SocketService {
}
this.printerStatus.status = PrinterState[message.current.state.text.toLowerCase()];

if (this.printerStatus.status === PrinterState.printing && this.lastState === PrinterEvent.UNKNOWN) {
if (this.printerStatus.status === PrinterState.printing && this.lastState !== PrinterEvent.PRINTING) {
this.extractPrinterEvent({
event: {
type: 'PrintStarted',
payload: null,
},
} as OctoprintSocketEvent);
} else if (this.printerStatus.status === PrinterState.paused && this.lastState === PrinterEvent.UNKNOWN) {
} else if (this.printerStatus.status === PrinterState.paused && this.lastState !== PrinterEvent.PAUSED) {
this.extractPrinterEvent({
event: {
type: 'PrintPaused',
Expand Down

0 comments on commit 5771af6

Please sign in to comment.