MMU_STEALTH_MODE -> MMU_FORCE_STEALTH_MODE; activate_stealth_mode() function update

This commit is contained in:
PavelSindler 2019-03-04 17:04:22 +01:00
parent 8e3d52ee6d
commit 7f92d73a40
5 changed files with 11 additions and 12 deletions

View File

@ -183,14 +183,13 @@ bool check_for_ir_sensor()
static bool activate_stealth_mode() static bool activate_stealth_mode()
{ {
bool activate_stealth_mode = false; #if defined (MMU_FORCE_STEALTH_MODE)
#ifdef SILENT_MODE_STEALTH return true;
activate_stealth_mode = (eeprom_read_byte((uint8_t*)EEPROM_SILENT) == SILENT_MODE_STEALTH); #elif defined (SILENT_MODE_STEALTH)
#endif //SILENT_MODE_STEALTH return (eeprom_read_byte((uint8_t*)EEPROM_SILENT) == SILENT_MODE_STEALTH);
#ifdef MMU_STEALTH_MODE #else
activate_stealth_mode = true; return false;
#endif //MMU_STEALTH_MODE #endif
return activate_stealth_mode;
} }
//mmu main loop - state machine processing //mmu main loop - state machine processing

View File

@ -498,7 +498,7 @@
//#define SUPPORT_VERBOSITY //#define SUPPORT_VERBOSITY
#define MMU_REQUIRED_FW_BUILDNR 132 #define MMU_REQUIRED_FW_BUILDNR 132
#define MMU_STEALTH_MODE #define MMU_FORCE_STEALTH_MODE
#define MMU_DEBUG //print communication between MMU2 and printer on serial #define MMU_DEBUG //print communication between MMU2 and printer on serial
#define MMU_IDLER_SENSOR_ATTEMPTS_NR 21 //max. number of attempts to load filament if first load failed; value for max bowden length and case when loading fails right at the beginning #define MMU_IDLER_SENSOR_ATTEMPTS_NR 21 //max. number of attempts to load filament if first load failed; value for max bowden length and case when loading fails right at the beginning

View File

@ -499,7 +499,7 @@
//#define SUPPORT_VERBOSITY //#define SUPPORT_VERBOSITY
#define MMU_REQUIRED_FW_BUILDNR 132 #define MMU_REQUIRED_FW_BUILDNR 132
#define MMU_STEALTH_MODE #define MMU_FORCE_STEALTH_MODE
#define MMU_DEBUG //print communication between MMU2 and printer on serial #define MMU_DEBUG //print communication between MMU2 and printer on serial
#define MMU_IDLER_SENSOR_ATTEMPTS_NR 21 //max. number of attempts to load filament if first load failed; value for max bowden length and case when loading fails right at the beginning #define MMU_IDLER_SENSOR_ATTEMPTS_NR 21 //max. number of attempts to load filament if first load failed; value for max bowden length and case when loading fails right at the beginning

View File

@ -498,7 +498,7 @@
//#define SUPPORT_VERBOSITY //#define SUPPORT_VERBOSITY
#define MMU_REQUIRED_FW_BUILDNR 132 #define MMU_REQUIRED_FW_BUILDNR 132
#define MMU_STEALTH_MODE #define MMU_FORCE_STEALTH_MODE
#define MMU_DEBUG //print communication between MMU2 and printer on serial #define MMU_DEBUG //print communication between MMU2 and printer on serial
#define MMU_IDLER_SENSOR_ATTEMPTS_NR 21 //max. number of attempts to load filament if first load failed; value for max bowden length and case when loading fails right at the beginning #define MMU_IDLER_SENSOR_ATTEMPTS_NR 21 //max. number of attempts to load filament if first load failed; value for max bowden length and case when loading fails right at the beginning

View File

@ -499,7 +499,7 @@
//#define SUPPORT_VERBOSITY //#define SUPPORT_VERBOSITY
#define MMU_REQUIRED_FW_BUILDNR 132 #define MMU_REQUIRED_FW_BUILDNR 132
#define MMU_STEALTH_MODE #define MMU_FORCE_STEALTH_MODE
#define MMU_DEBUG //print communication between MMU2 and printer on serial #define MMU_DEBUG //print communication between MMU2 and printer on serial
#define MMU_IDLER_SENSOR_ATTEMPTS_NR 21 //max. number of attempts to load filament if first load failed; value for max bowden length and case when loading fails right at the beginning #define MMU_IDLER_SENSOR_ATTEMPTS_NR 21 //max. number of attempts to load filament if first load failed; value for max bowden length and case when loading fails right at the beginning