Skip to content

Commit

Permalink
#239-Filament presence on startup (#240)
Browse files Browse the repository at this point in the history
* #239-Filament presence on startup

* Update tests
  • Loading branch information
vintagepc authored Sep 17, 2020
1 parent 0fdeaf9 commit 9aecd47
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion parts/printers/Prusa_MK3.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Prusa_MK3: public Prusa_MK3S
lIR.ConnectFrom(LaserSensor.GetIRQ(PAT9125::LED_OUT),LED::LED_IN);

LaserSensor.ConnectFrom(E.GetIRQ(TMC2130::POSITION_OUT), PAT9125::E_IN);
LaserSensor.Set(PAT9125::FS_NO_FILAMENT); // No filament - but this just updates the LED.
LaserSensor.Set(PAT9125::FS_FILAMENT_PRESENT);
}; // Overridde to setup the PAT.

inline void ToggleFSensor() override { LaserSensor.Toggle(); };
Expand Down
1 change: 1 addition & 0 deletions parts/printers/Prusa_MK3S.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ void Prusa_MK3S::SetupIR()
AddHardware(IR, GetPinNumber(VOLT_IR_PIN));
TryConnect(IR,IRSensor::DIGITAL_OUT, IR_SENSOR_PIN);
TryConnect(IR_SENSOR_PIN, lIR, LED::LED_IN);
IR.Set(IRSensor::IR_v4_FILAMENT_PRESENT);
}

void Prusa_MK3S::SetupHardware()
Expand Down
Binary file modified scripts/tests/snaps/GFXLiteKey07.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified scripts/tests/snaps/GFXLiteKey08.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified scripts/tests/snaps/MK301.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified scripts/tests/snaps/MK302.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified scripts/tests/snaps/MK3S02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion scripts/tests/test_GLPrint.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ EEPROM::Poke(3935,0)
EEPROM::Poke(4087,1)
LCD::WaitForText(Prusa i3 MK3S OK,3)
3DVisuals::ToggleNozzleCam()
IRSensor::Toggle()
IRSensor::Set(2)
Serial0::SendGCode(M23 test~1.gco)
Serial0::SendGCode(M24)
Serial0::SendGCode(G4 S0)
Expand Down

0 comments on commit 9aecd47

Please sign in to comment.