
Fixed bug whereby incoming gcodes were URI-decoded twice, which could cause problems if a comment contain a % character Fixed bug whereby M109 and M190 waited for all heaters to reach target temperature instead of just the one involved Fixed bug whereby files whose names contain an uppercase letter G could not be uploaded or deleted Increase buffer size for incoming gcodes Removed parameter to set max PWM value in M106 command. Max PWM value is now 255 as per recent RepRapPro change. Changed the code that deals with dropping characters in unimportant messages sent to USB such that we only drop characters at the end of a line (adding ".\n" to whatever we send) or drop whole lines
78 lines
1.9 KiB
C++
78 lines
1.9 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
|
|
|
|
#include <cstddef> // for size_t
|
|
#include <cfloat>
|
|
#include <cstdarg>
|
|
|
|
|
|
// Warn of what's to come, so we can use pointers to classes...
|
|
|
|
class Network;
|
|
class Platform;
|
|
class Webserver;
|
|
class GCodes;
|
|
class Move;
|
|
class Heat;
|
|
class RepRap;
|
|
class FileStore;
|
|
|
|
// A single instance of the RepRap class contains all the others
|
|
|
|
extern RepRap reprap;
|
|
|
|
// Functions and globals not part of any class
|
|
|
|
void debugPrintf(const char* fmt, ...);
|
|
int sncatf(char *dst, size_t len, const char* fmt, ...);
|
|
#if 0 // no longer used
|
|
char* ftoa(char *a, const float& f, int prec);
|
|
#endif
|
|
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);
|
|
|
|
// Macro to give us the number of elements in an array
|
|
#define ARRAY_SIZE(_x) (sizeof(_x)/sizeof(_x[0]))
|
|
// Macro to give us the highest valid index into an array i.e. one less than the size
|
|
#define ARRAY_UPB(_x) (ARRAY_SIZE(_x) - 1)
|
|
|
|
extern char scratchString[];
|
|
|
|
#include "Arduino.h"
|
|
#include "Configuration.h"
|
|
#include "Network.h"
|
|
#include "Platform.h"
|
|
#include "Webserver.h"
|
|
#include "GCodes.h"
|
|
#include "Move.h"
|
|
#include "Heat.h"
|
|
#include "Reprap.h"
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|