
Increase incoming web gcode buffer size to 1200 chars to allow more gcodes to be sent in each message Include free buffer size in poll response Include response sequence number in poll response Implement M30 (delete file) via USB interface Support M503 and M111 commands via web interface
81 lines
1.7 KiB
C++
81 lines
1.7 KiB
C++
/****************************************************************************************************
|
|
|
|
RepRapFirmware - Reprap
|
|
|
|
RepRap is a simple class that acts as a container for an instance of all the others.
|
|
|
|
-----------------------------------------------------------------------------------------------------
|
|
|
|
Version 0.1
|
|
|
|
21 May 2013
|
|
|
|
Adrian Bowyer
|
|
RepRap Professional Ltd
|
|
http://reprappro.com
|
|
|
|
Licence: GPL
|
|
|
|
****************************************************************************************************/
|
|
|
|
#ifndef REPRAP_H
|
|
#define REPRAP_H
|
|
|
|
class RepRap
|
|
{
|
|
public:
|
|
|
|
RepRap();
|
|
void EmergencyStop();
|
|
void Init();
|
|
void Spin();
|
|
void Exit();
|
|
void Interrupt();
|
|
void Diagnostics();
|
|
bool Debug();
|
|
void SetDebug(bool d);
|
|
Platform* GetPlatform();
|
|
Move* GetMove();
|
|
Heat* GetHeat();
|
|
GCodes* GetGCodes();
|
|
Webserver* GetWebserver();
|
|
|
|
private:
|
|
|
|
Platform* platform;
|
|
bool active;
|
|
Move* move;
|
|
Heat* heat;
|
|
GCodes* gCodes;
|
|
Webserver* webserver;
|
|
bool debug;
|
|
};
|
|
|
|
inline Platform* RepRap::GetPlatform() { return platform; }
|
|
inline Move* RepRap::GetMove() { return move; }
|
|
inline Heat* RepRap::GetHeat() { return heat; }
|
|
inline GCodes* RepRap::GetGCodes() { return gCodes; }
|
|
inline Webserver* RepRap::GetWebserver() { return webserver; }
|
|
inline bool RepRap::Debug() { return debug; }
|
|
|
|
inline void RepRap::SetDebug(bool d)
|
|
{
|
|
debug = d;
|
|
if(debug)
|
|
{
|
|
platform->Message(HOST_MESSAGE, "Debugging enabled\n");
|
|
webserver->HandleReply("Debugging enabled\n", false);
|
|
platform->PrintMemoryUsage();
|
|
}
|
|
else
|
|
{
|
|
webserver->HandleReply("", false);
|
|
}
|
|
}
|
|
|
|
inline void RepRap::Interrupt() { move->Interrupt(); }
|
|
|
|
|
|
#endif
|
|
|
|
|