Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BFW-6334] [BUG] MINI reports sheet Z height uncalibrated when minimum value is set #4295

Open
jenda122 opened this issue Nov 13, 2024 · 1 comment
Assignees
Labels
bug Something isn't working.

Comments

@jenda122
Copy link

Printer model

Mini

Firmware version

6.1.2+7894

Upgrades and modifications

None

Printing from...

USB drive, Prusa Link

Describe the bug

When Z offset calibration is set to a limit value, e.g. -2.000mm, the printer thinks Z offset has not yet been calibrated. "Please complete Calibrations & Tests before using the printer." is shown when attempting to start print.

I believe this is caused by the following expression in src/common/SteelSheets.cpp:SteelSheets::IsSheetCalibrated:

return std::isfinite(sheet.z_offset) && sheet.z_offset < zOffsetMax && sheet.z_offset > zOffsetMin;

where zOffsetMin seems to be set to Z_OFFSET_MIN, which is defined to be -2.0F. Therefore, if you dial the GUI to the limit value (-2.000), the condition will return false.

sheet.z_offset <= zOffsetMax && sheet.z_offset >= zOffsetMin should probably be used.

How to reproduce

Set Z height for the current sheet to -2.000 (the lowest value can dial). Try starting a print.

Expected behavior

The printer will accept the calibration value.

Files

No response

@jenda122 jenda122 added the bug Something isn't working. label Nov 13, 2024
@CZDanol CZDanol changed the title [BUG] MINI reports sheet Z height uncalibrated when minimum value is set [BFW-6334] [BUG] MINI reports sheet Z height uncalibrated when minimum value is set Nov 14, 2024
@CZDanol
Copy link
Contributor

CZDanol commented Nov 14, 2024

Hey, thanks for the report. Looks like you're pretty much correct, good job :) Created an internal ticket BFW-6334 for this.

@CZDanol CZDanol self-assigned this Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working.
Projects
None yet
Development

No branches or pull requests

2 participants