Update powersupply_on in power_on/off (#10014)

Fix #10004
This commit is contained in:
Scott Lahteine 2018-03-08 18:56:41 -06:00 committed by GitHub
parent 9c667b5436
commit e5e3c3ff35
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 15 deletions

View file

@ -453,6 +453,12 @@ void report_current_position();
extern int lpq_len;
#endif
#if HAS_POWER_SWITCH
extern bool powersupply_on;
#define PSU_PIN_ON() do{ OUT_WRITE(PS_ON_PIN, PS_ON_AWAKE); powersupply_on = true; }while(0)
#define PSU_PIN_OFF() do{ OUT_WRITE(PS_ON_PIN, PS_ON_ASLEEP); powersupply_on = false; }while(0)
#endif
// Handling multiple extruders pins
extern uint8_t active_extruder;