From 6b6a3d7d5fb6ccca998877aec5b2111b332392a7 Mon Sep 17 00:00:00 2001 From: PavelSindler Date: Fri, 25 Jan 2019 18:01:17 +0100 Subject: [PATCH] MMU_IR_SENSOR_PIN -> IR_SENSOR_PIN --- Firmware/mmu.cpp | 6 +++--- Firmware/ultralcd.cpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Firmware/mmu.cpp b/Firmware/mmu.cpp index c901fa21..4a208ee9 100644 --- a/Firmware/mmu.cpp +++ b/Firmware/mmu.cpp @@ -349,7 +349,7 @@ void mmu_loop(void) case 3: //response to mmu commands if (mmu_idl_sens) { - if (PIN_GET(MMU_IDLER_SENSOR_PIN) == 0 && mmu_loading_flag) + if (PIN_GET(IR_SENSOR_PIN) == 0 && mmu_loading_flag) { #ifdef MMU_DEBUG printf_P(PSTR("MMU <= 'A'\n")); @@ -510,7 +510,7 @@ bool mmu_get_response(uint8_t move) if (PIN_GET(IR_SENSOR_PIN) == 0) move = MMU_NO_MOVE; break; case MMU_UNLOAD_MOVE: - if (PIN_GET(MMU_IDLER_SENSOR_PIN) == 0) //filament is still detected by idler sensor, printer helps with unlading + if (PIN_GET(IR_SENSOR_PIN) == 0) //filament is still detected by idler sensor, printer helps with unlading { if (can_extrude()) { @@ -528,7 +528,7 @@ bool mmu_get_response(uint8_t move) } break; case MMU_TCODE_MOVE: //first do unload and then continue with infinite loading movements - if (PIN_GET(MMU_IDLER_SENSOR_PIN) == 0) //filament detected by idler sensor, we must unload first + if (PIN_GET(IR_SENSOR_PIN) == 0) //filament detected by idler sensor, we must unload first { if (can_extrude()) { diff --git a/Firmware/ultralcd.cpp b/Firmware/ultralcd.cpp index 80d03e68..97f18fb9 100644 --- a/Firmware/ultralcd.cpp +++ b/Firmware/ultralcd.cpp @@ -7023,7 +7023,7 @@ static bool lcd_selftest_fsensor(void) //! * Pre-heat to PLA extrude temperature. //! * Unload filament possibly present. //! * Move extruder idler same way as during filament load -//! and sample MMU_IDLER_SENSOR_PIN. +//! and sample IR_SENSOR_PIN. //! * Check that pin doesn't go low. //! //! @retval true passed @@ -7060,7 +7060,7 @@ static bool selftest_irsensor() mmu_load_step(false); while (blocks_queued()) { - if (PIN_GET(MMU_IDLER_SENSOR_PIN) == 0) return false; + if (PIN_GET(IR_SENSOR_PIN) == 0) return false; #ifdef TMC2130 manage_heater(); // Vojtech: Don't disable motors inside the planner!