From 52554d72c4fcdb4042859bc256d1f87862910121 Mon Sep 17 00:00:00 2001 From: michalprusa Date: Fri, 7 Jul 2017 07:34:35 +0200 Subject: [PATCH] PAT9125 finally able to turn off --- Firmware/Marlin_main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Firmware/Marlin_main.cpp b/Firmware/Marlin_main.cpp index f997e258..10127ee4 100644 --- a/Firmware/Marlin_main.cpp +++ b/Firmware/Marlin_main.cpp @@ -5993,10 +5993,14 @@ case 404: //M404 Enter the nominal filament width (3mm, 1.75mm ) N<3.0> or disp } break; case 3: +#ifdef HAVE_PAT9125_SENSOR fsensor_enable(); +#endif break; case 4: +#ifdef HAVE_PAT9125_SENSOR fsensor_disable(); +#endif break; } }