
Added new fields "zprobe" and "resp" to webserver poll response Immutable string parameters are passed as const char* not char* Increase max number of files displayed to 42 Range-check heater parameters in incoming commands to avoid buffer overflow if heater number is out of range
64 lines
1.4 KiB
C++
64 lines
1.4 KiB
C++
/****************************************************************************************************
|
|
|
|
RepRapFirmware - Main Include
|
|
|
|
This includes all the other include files in the right order and defines some globals.
|
|
No other definitions or information should be in here.
|
|
|
|
-----------------------------------------------------------------------------------------------------
|
|
|
|
Version 0.1
|
|
|
|
18 November 2012
|
|
|
|
Adrian Bowyer
|
|
RepRap Professional Ltd
|
|
http://reprappro.com
|
|
|
|
Licence: GPL
|
|
|
|
****************************************************************************************************/
|
|
|
|
#ifndef REPRAPFIRMWARE_H
|
|
#define REPRAPFIRMWARE_H
|
|
|
|
// Warn of what's to come, so we can use pointers to classes...
|
|
|
|
class Platform;
|
|
class Webserver;
|
|
class GCodes;
|
|
class Move;
|
|
class Heat;
|
|
class RepRap;
|
|
|
|
// A single instace of the RepRap class contains all the others
|
|
|
|
extern RepRap reprap;
|
|
|
|
// Functions and globals not part of any class
|
|
|
|
char* ftoa(char *a, const float& f, int prec);
|
|
bool StringEndsWith(const char* string, const char* ending);
|
|
bool StringStartsWith(const char* string, const char* starting);
|
|
bool StringEquals(const char* s1, const char* s2);
|
|
int StringContains(const char* string, const char* match);
|
|
|
|
|
|
#include <float.h>
|
|
|
|
extern char scratchString[];
|
|
|
|
#include "Configuration.h"
|
|
#include "Platform.h"
|
|
#include "Webserver.h"
|
|
#include "GCodes.h"
|
|
#include "Move.h"
|
|
#include "Heat.h"
|
|
#include "Reprap.h"
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|