Skip to content

Commit

Permalink
Fix Z height for MK2.5S
Browse files Browse the repository at this point in the history
  • Loading branch information
vintagepc committed Oct 18, 2020
1 parent 53192f6 commit d3ade16
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions parts/printers/Prusa_MK25S_13.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,18 @@
*/

#include "Prusa_MK25S_13.h"
#include "A4982.h"
#include "IRSensor.h" // for IRSensor
#include "LED.h" // for LED, LED::IRQ::LED_IN, PAT9125::IRQ::LED_OUT
#include "PinNames.h" // for Pin::IR_SENSOR_PIN, Pin::VOLT_IR_PIN

void Prusa_MK25S_13::SetupHardware()
{
Prusa_MK25_13::SetupHardware();
Z.GetConfig().iMaxMM = 215;
Z.ReparseConfig();
}

void Prusa_MK25S_13::SetupFilamentSensor()
{
AddHardware(m_IR, GetPinNumber(VOLT_IR_PIN));
Expand Down
2 changes: 2 additions & 0 deletions parts/printers/Prusa_MK25S_13.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
class Prusa_MK25S_13 : public Prusa_MK25_13
{
protected:
void SetupHardware() override;

void SetupFilamentSensor() override;

IRSensor m_IR{};
Expand Down

0 comments on commit d3ade16

Please sign in to comment.