Browse Source

Remove redundant declarations from M100 code

Scott Lahteine 8 years ago
parent
commit
0b3142b45b
1 changed files with 1 additions and 17 deletions
  1. 1
    17
      Marlin/M100_Free_Mem_Chk.cpp

+ 1
- 17
Marlin/M100_Free_Mem_Chk.cpp View File

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
 // Utility functions used by M100 to get its work done.
51
 // Utility functions used by M100 to get its work done.
67
 //
52
 //
68
 
53
 
175
   //
160
   //
176
 #if ENABLED(M100_FREE_MEMORY_CORRUPTOR)
161
 #if ENABLED(M100_FREE_MEMORY_CORRUPTOR)
177
   if (code_seen('C')) {
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
     SERIAL_ECHOLNPGM("Corrupting free memory block.\n");
164
     SERIAL_ECHOLNPGM("Corrupting free memory block.\n");
181
     ptr = (unsigned char*) __brkval;
165
     ptr = (unsigned char*) __brkval;
182
     SERIAL_ECHOPAIR("\n__brkval : ", ptr);
166
     SERIAL_ECHOPAIR("\n__brkval : ", ptr);

Loading…
Cancel
Save