Apply remaining ENABLED/DISABLED conditionals
This commit is contained in:
committed by
Richard Wackerbarth
parent
4a72d2ba9c
commit
46453905d6
@ -23,7 +23,7 @@
|
||||
|
||||
#include "Marlin.h"
|
||||
|
||||
#ifdef M100_FREE_MEMORY_WATCHER
|
||||
#if ENABLED(M100_FREE_MEMORY_WATCHER)
|
||||
extern void *__brkval;
|
||||
extern size_t __heap_start, __heap_end, __flp;
|
||||
|
||||
@ -73,7 +73,7 @@ int i, j, n;
|
||||
// the right hand column to help spotting them.
|
||||
//
|
||||
|
||||
#ifdef M100_FREE_MEMORY_DUMPER // Comment out to remove Dump sub-command
|
||||
#if ENABLED(M100_FREE_MEMORY_DUMPER) // Disable to remove Dump sub-command
|
||||
if ( code_seen('D') ) {
|
||||
ptr = (unsigned char *) __brkval;
|
||||
|
||||
@ -163,7 +163,7 @@ int i, j, n;
|
||||
// M100 C x Corrupts x locations in the free memory pool and reports the locations of the corruption.
|
||||
// This is useful to check the correctness of the M100 D and the M100 F commands.
|
||||
//
|
||||
#ifdef M100_FREE_MEMORY_CORRUPTOR
|
||||
#if ENABLED(M100_FREE_MEMORY_CORRUPTOR)
|
||||
if ( code_seen('C') ) {
|
||||
int x; // x gets the # of locations to corrupt within the memory pool
|
||||
x = code_value();
|
||||
|
Reference in New Issue
Block a user