report back pin numbers together with the end stop status

pull/21/head
TimEvWw 2015-03-17 20:22:00 -01:00
parent 6f777d9ac6
commit 75b5b8dbf3
2 changed files with 10 additions and 0 deletions

View File

@ -31,9 +31,18 @@ Serial.print("home\n");
Serial.print("R99 Report end stops\n");
}
// Report back the end stops
CurrentState::getInstance()->storeEndStops();
CurrentState::getInstance()->printEndStops();
// Also report back some selected pin numbers: 8, 9, 10, 13
PinControl::getInstance()->readValue( 8, 0);
PinControl::getInstance()->readValue( 9, 0);
PinControl::getInstance()->readValue(10, 0);
PinControl::getInstance()->readValue(13, 0);
return 0;
}

View File

@ -13,6 +13,7 @@
#include "pins.h"
#include "Config.h"
#include "StepperControl.h"
#include "PinControl.h"
class F81Handler : public GCodeHandler {
public: