Reprise après coupure de courant
Méthode de configuration
-
Prise en charge de la reprise après coupure de courant et du choix du mode de reprise. Vous pouvez opter pour une reprise par couche ou au point de coupure.
Loading...Loading... -
Ajoutez le code suivant dans
Configuration.h
#define FLY_POWER
#define FLY_POWER_LOSS_PING PB11
#define FLY_POWER_LOSS_STATE HIGH
- Ajoutez le code suivant dans
Marlin\src\MarlinCore.cpp
#if ENABLED(FLY_POWER)
// if (printJobOngoing() && (READ(FLY_POWER_LOSS_PING) == FLY_POWER_LOSS_STATE)){
if ( (READ(FLY_POWER_LOSS_PING) == FLY_POWER_LOSS_STATE)){
WRITE( FLY_BEEP_PING , HIGH );
// thermalManager.;
static millis_t send_power_ms = 0;
const millis_t power_ms = millis();
if((power_ms - send_power_ms ) >= 200){
thermalManager.setTargetBed(0);
SERIAL_ECHOLNPGM("power_LOSS");
//queue.inject_P(PSTR("M81"));
send_power_ms = millis();
}
}
#endif
Loading...