|
@@ -48,21 +48,6 @@ extern size_t __heap_start, __heap_end, __flp;
|
48
|
48
|
|
49
|
49
|
|
50
|
50
|
//
|
51
|
|
-// Declare all the functions we need from Marlin_Main.cpp to do the work!
|
52
|
|
-//
|
53
|
|
-
|
54
|
|
-int code_value_int();
|
55
|
|
-bool code_seen(char);
|
56
|
|
-void serial_echopair_P(const char*, float);
|
57
|
|
-void serial_echopair_P(const char*, double);
|
58
|
|
-void serial_echopair_P(const char*, unsigned long);
|
59
|
|
-void serial_echopair_P(const char*, int);
|
60
|
|
-void serial_echopair_P(const char*, long);
|
61
|
|
-
|
62
|
|
-
|
63
|
|
-
|
64
|
|
-
|
65
|
|
-//
|
66
|
51
|
// Utility functions used by M100 to get its work done.
|
67
|
52
|
//
|
68
|
53
|
|
|
@@ -175,8 +160,7 @@ void gcode_M100() {
|
175
|
160
|
//
|
176
|
161
|
#if ENABLED(M100_FREE_MEMORY_CORRUPTOR)
|
177
|
162
|
if (code_seen('C')) {
|
178
|
|
- int x; // x gets the # of locations to corrupt within the memory pool
|
179
|
|
- x = code_value_int();
|
|
163
|
+ int x = code_value_int(); // x gets the # of locations to corrupt within the memory pool
|
180
|
164
|
SERIAL_ECHOLNPGM("Corrupting free memory block.\n");
|
181
|
165
|
ptr = (unsigned char*) __brkval;
|
182
|
166
|
SERIAL_ECHOPAIR("\n__brkval : ", ptr);
|