diff --git a/GCodes.cpp b/GCodes.cpp index 1c3dadc..84010c9 100644 --- a/GCodes.cpp +++ b/GCodes.cpp @@ -3249,7 +3249,7 @@ bool GCodes::HandleMcode(GCodeBuffer* gb) } else { - reply.printf("A %d sends drive %d forwards.", (int)platform->GetDirectionValue(drive), drive); + reply.printf("A %d sends drive %d forwards.\n", (int)platform->GetDirectionValue(drive), drive); } } break; diff --git a/RepRapFirmware.h b/RepRapFirmware.h index 284b39c..91d2c22 100644 --- a/RepRapFirmware.h +++ b/RepRapFirmware.h @@ -64,6 +64,7 @@ int StringContains(const char* string, const char* match); #else // This version relies on a gcc extension that is available only in older compilers #define ARRAY_INIT(_dest, _init) _dest = _init +#define nullptr (0) #endif // Class to describe a string buffer, including its length. This saves passing buffer lengths around everywhere.