Browse Source

PS_ON configurable boot state

Allows the user to select wheter or not the PSU should be turned on or
kept in standby when marlin boots
dumle29 11 years ago
parent
commit
f941203172
2 changed files with 8 additions and 1 deletions
  1. 3
    0
      Marlin/Configuration.h
  2. 5
    1
      Marlin/Marlin_main.cpp

+ 3
- 0
Marlin/Configuration.h View File

79
 
79
 
80
 #define POWER_SUPPLY 1
80
 #define POWER_SUPPLY 1
81
 
81
 
82
+// Define this to have the electronics keep the powersupply off on startup. If you don't know what this is leave it.
83
+// #define PS_DEFAULT_OFF
84
+
82
 //===========================================================================
85
 //===========================================================================
83
 //=============================Thermal Settings  ============================
86
 //=============================Thermal Settings  ============================
84
 //===========================================================================
87
 //===========================================================================

+ 5
- 1
Marlin/Marlin_main.cpp View File

366
   #endif
366
   #endif
367
   #if defined(PS_ON_PIN) && PS_ON_PIN > -1
367
   #if defined(PS_ON_PIN) && PS_ON_PIN > -1
368
     SET_OUTPUT(PS_ON_PIN);
368
     SET_OUTPUT(PS_ON_PIN);
369
-    WRITE(PS_ON_PIN, PS_ON_AWAKE);
369
+	#if defined(PS_DEFAULT_OFF)
370
+	  WRITE(PS_ON_PIN, PS_ON_ASLEEP);
371
+    #else
372
+	  WRITE(PS_ON_PIN, PS_ON_AWAKE);
373
+	#endif
370
   #endif
374
   #endif
371
 }
375
 }
372
 
376
 

Loading…
Cancel
Save