watchdog into dedicated file

This commit is contained in:
Bernhard Kubicek
2011-11-06 14:22:15 +01:00
parent 2afb7bd4cf
commit e8092898b1
4 changed files with 73 additions and 55 deletions

View File

@ -78,5 +78,19 @@ void enquecommand(const char *cmd);
extern float homing_feedrate[];
extern bool axis_relative_modes[];
void wd_reset() ;
inline void kill()
{
disable_heater();
disable_x();
disable_y();
disable_z();
disable_e();
if(PS_ON_PIN > -1) pinMode(PS_ON_PIN,INPUT);
Serial.println("!! Printer halted. kill() called !!");
while(1); // Wait for reset
}
#endif