Added a door switch in Version 1.0.1, latest firmware. Get error when compiling at Line 67 in commands.cpp at this location (see below).
Compile Error:
sketch\Commands.cpp: In static member function 'static void Commands::checkForPeriodicalActions(bool)':
Commands.cpp:67: error: 'LaserDriver' has not been declared
LaserDriver::changeIntensity(0);
^
exit status 1
'LaserDriver' has not been declared
Code:
void Commands::checkForPeriodicalActions(bool allowNewMoves) {
Printer::handleInterruptEvent();
EVENT_PERIODICAL;
#if defined(DOOR_PIN) && DOOR_PIN > -1
if(Printer::updateDoorOpen()) {
if(Printer::mode == PRINTER_MODE_LASER) {
LaserDriver::changeIntensity(0);
}
}
#endif
Somehow getting past if(Printer::mode == PRINTER_MODE_LASER) even though I don't have SUPPORT_LASER in Configuration Tool checked.