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

Add PLR to ext_ui #23687

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Marlin/src/lcd/extui/ui_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@
#include "../../feature/caselight.h"
#endif

#if ENABLED(POWER_LOSS_RECOVERY)
#include "../../feature/powerloss.h"
#endif

#if ENABLED(BABYSTEPPING)
#include "../../feature/babystep.h"
#endif
Expand Down Expand Up @@ -674,6 +678,11 @@ namespace ExtUI {
#endif
#endif

#if ENABLED(POWER_LOSS_RECOVERY)
bool getPowerLossRecoveryEnabled() { return recovery.enabled; }
void setPowerLossRecoveryEnabled(const bool value) { recovery.enable(value); }
#endif

#if ENABLED(LIN_ADVANCE)
float getLinearAdvance_mm_mm_s(const extruder_t extruder) {
return (extruder < EXTRUDERS) ? planner.extruder_advance_K[extruder - E0] : 0;
Expand Down
5 changes: 5 additions & 0 deletions Marlin/src/lcd/extui/ui_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,11 @@ namespace ExtUI {
#endif
#endif

#if ENABLED(POWER_LOSS_RECOVERY)
bool getPowerLossRecoveryEnabled();
void setPowerLossRecoveryEnabled(const bool);
#endif

#if ENABLED(PIDTEMP)
float getPIDValues_Kp(const extruder_t);
float getPIDValues_Ki(const extruder_t);
Expand Down