prusa3d / Prusa-Firmware-Buddy

Firmware for the Original Prusa MINI, Original Prusa MK4 and the Original Prusa XL 3D printers by Prusa Research.
Other
1.17k stars 229 forks source link

[BFW-6187] [BUG] API fails to report ATTENTION after heating disabled #4250

Open rtdog opened 1 month ago

rtdog commented 1 month ago

Printer model

MK4

Firmware version

6.1.3

Upgrades and modifications

No response

Printing from...

PrusaConnect

Describe the bug

The API's /printer, /job, /v1/job all report healthy printer state when printer requires filament change and heating disabled due to inactivity. One or more of these APIs should report "ATTENTION".

How to reproduce

  1. Start print with a short length of filament, let it run out.
  2. Inspect /printer, /job, and /v1/job APIs and notice /api/printer reports state.text="printing" and state.flags.link_state="ATTENTION", /job reports state="Error", and /v1/job reports state="PAUSED". This is operating as expected.
  3. Allow hotend to timeout after 30 minutes with "heating disabled due to 30 minutes of inactivity"
  4. Inspect /printer, /job, and /v1/job APIs and notice /printer reports state.text="printing" and state.flags.link_state="PRINTING", /job reports state="Printing" and /v1/job reports state="PRINTING".

Expected behavior

I expect one or more of the API's to report ATTENTION status instead of PRINTING as the device requires attention and is not printing.

Files

No response

CZDanol commented 1 month ago

Hey, thanks for the report :) Internal ticket: BFW-6187