Configtool: don't make DEBUG configuration user-visible.

Debug stuff is meaningful for developers, only. Also often
enabled on a per-file basis depending on the problem at hand.
Two reasons to remove it from Configtool and one reason to
remove it from the config files.

This should solve issue #137.
This commit is contained in:
jbernardis 2015-04-28 20:12:14 -04:00 committed by Markus Hitter
parent b2e075be67
commit 5b5032f87f
5 changed files with 17 additions and 35 deletions

View File

@ -218,15 +218,6 @@
*/
#define EECONFIG
/** \def DEBUG
Enables /heaps/ of extra output, and some extra M-codes.
WARNING: this WILL break most host-side talkers that expect particular
responses from firmware such as reprap host and replicatorG use with serial
terminal or other suitable talker only.
*/
//#define DEBUG
/** \def BANG_BANG
Drops PID loop from heater control, reduces code size significantly
(1300 bytes!).

View File

@ -218,15 +218,6 @@
*/
#define EECONFIG
/** \def DEBUG
Enables /heaps/ of extra output, and some extra M-codes.
WARNING: this WILL break most host-side talkers that expect particular
responses from firmware such as reprap host and replicatorG use with serial
terminal or other suitable talker only.
*/
//#define DEBUG
/** \def BANG_BANG
Drops PID loop from heater control, reduces code size significantly
(1300 bytes!).

View File

@ -14,7 +14,6 @@ class MiscellaneousPage(wx.Panel, Page):
self.labels = {'USE_INTERNAL_PULLUPS': "Use Internal Pullups",
'EECONFIG': "Enable EEPROM Storage",
'DEBUG': "Turn on Debugging",
'BANG_BANG': "Enable",
'BANG_BANG_ON': "On PWM Level:",
'BANG_BANG_OFF': "Off PWM Level:",
@ -64,25 +63,21 @@ class MiscellaneousPage(wx.Panel, Page):
cb = self.addCheckBox(k, self.onCheckBox)
sz.Add(cb, pos = (2, 1))
k = 'DEBUG'
k = 'USE_WATCHDOG'
cb = self.addCheckBox(k, self.onCheckBox)
sz.Add(cb, pos = (3, 1))
k = 'USE_WATCHDOG'
k = 'FAST_PWM'
cb = self.addCheckBox(k, self.onCheckBox)
sz.Add(cb, pos = (4, 1))
k = 'FAST_PWM'
k = 'HEATER_SANITY_CHECK'
cb = self.addCheckBox(k, self.onCheckBox)
sz.Add(cb, pos = (5, 1))
k = 'HEATER_SANITY_CHECK'
cb = self.addCheckBox(k, self.onCheckBox)
sz.Add(cb, pos = (6, 1))
k = 'REPORT_TARGET_TEMPS'
cb = self.addCheckBox(k, self.onCheckBox)
sz.Add(cb, pos = (7, 1))
sz.Add(cb, pos = (6, 1))
k = 'REFERENCE'
ch = self.addChoice(k, self.references,

13
debug.h
View File

@ -3,6 +3,19 @@
#include <stdint.h>
/** \def DEBUG
Enable debug output generally and some additional M-codes.
Individual flags are enabled at runtime using M111 (see gcode_process.c) or
by modifying the presets here.
WARNING: enabling some or all of these is done can produce /heaps/ of extra
output. This extra output will break most host-side talkers that expect
particular responses from firmware such as RepRap Host or ReplicatorG. Use
with serial terminal or other suitable talker only.
*/
//#define DEBUG
#ifdef DEBUG
#define DEBUG_ECHO 1
#define DEBUG_INFO 2

View File

@ -506,14 +506,6 @@ DEFINE_HEATER(bed, DIO3, 1)
*/
#define EECONFIG
/** \def DEBUG
DEBUG
enables /heaps/ of extra output, and some extra M-codes.
WARNING: this WILL break most host-side talkers that expect particular responses from firmware such as reprap host and replicatorG
use with serial terminal or other suitable talker only.
*/
// #define DEBUG
/** \def BANG_BANG
BANG_BANG
drops PID loop from heater control, reduces code size significantly (1300 bytes!)