mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-28 14:24:34 +00:00
PLR accessors for Ext UI (#23687)
This commit is contained in:
parent
3e93def08e
commit
c2fa7e5942
@ -94,6 +94,10 @@
|
|||||||
#include "../../feature/caselight.h"
|
#include "../../feature/caselight.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if ENABLED(POWER_LOSS_RECOVERY)
|
||||||
|
#include "../../feature/powerloss.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#if ENABLED(BABYSTEPPING)
|
#if ENABLED(BABYSTEPPING)
|
||||||
#include "../../feature/babystep.h"
|
#include "../../feature/babystep.h"
|
||||||
#endif
|
#endif
|
||||||
@ -674,6 +678,11 @@ namespace ExtUI {
|
|||||||
#endif
|
#endif
|
||||||
#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)
|
#if ENABLED(LIN_ADVANCE)
|
||||||
float getLinearAdvance_mm_mm_s(const extruder_t extruder) {
|
float getLinearAdvance_mm_mm_s(const extruder_t extruder) {
|
||||||
return (extruder < EXTRUDERS) ? planner.extruder_advance_K[extruder - E0] : 0;
|
return (extruder < EXTRUDERS) ? planner.extruder_advance_K[extruder - E0] : 0;
|
||||||
|
@ -315,6 +315,11 @@ namespace ExtUI {
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if ENABLED(POWER_LOSS_RECOVERY)
|
||||||
|
bool getPowerLossRecoveryEnabled();
|
||||||
|
void setPowerLossRecoveryEnabled(const bool);
|
||||||
|
#endif
|
||||||
|
|
||||||
#if ENABLED(PIDTEMP)
|
#if ENABLED(PIDTEMP)
|
||||||
float getPIDValues_Kp(const extruder_t);
|
float getPIDValues_Kp(const extruder_t);
|
||||||
float getPIDValues_Ki(const extruder_t);
|
float getPIDValues_Ki(const extruder_t);
|
||||||
|
Loading…
Reference in New Issue
Block a user