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:
parent
b2e075be67
commit
5b5032f87f
|
|
@ -218,15 +218,6 @@
|
||||||
*/
|
*/
|
||||||
#define EECONFIG
|
#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
|
/** \def BANG_BANG
|
||||||
Drops PID loop from heater control, reduces code size significantly
|
Drops PID loop from heater control, reduces code size significantly
|
||||||
(1300 bytes!).
|
(1300 bytes!).
|
||||||
|
|
|
||||||
|
|
@ -218,15 +218,6 @@
|
||||||
*/
|
*/
|
||||||
#define EECONFIG
|
#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
|
/** \def BANG_BANG
|
||||||
Drops PID loop from heater control, reduces code size significantly
|
Drops PID loop from heater control, reduces code size significantly
|
||||||
(1300 bytes!).
|
(1300 bytes!).
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,6 @@ class MiscellaneousPage(wx.Panel, Page):
|
||||||
|
|
||||||
self.labels = {'USE_INTERNAL_PULLUPS': "Use Internal Pullups",
|
self.labels = {'USE_INTERNAL_PULLUPS': "Use Internal Pullups",
|
||||||
'EECONFIG': "Enable EEPROM Storage",
|
'EECONFIG': "Enable EEPROM Storage",
|
||||||
'DEBUG': "Turn on Debugging",
|
|
||||||
'BANG_BANG': "Enable",
|
'BANG_BANG': "Enable",
|
||||||
'BANG_BANG_ON': "On PWM Level:",
|
'BANG_BANG_ON': "On PWM Level:",
|
||||||
'BANG_BANG_OFF': "Off PWM Level:",
|
'BANG_BANG_OFF': "Off PWM Level:",
|
||||||
|
|
@ -64,25 +63,21 @@ class MiscellaneousPage(wx.Panel, Page):
|
||||||
cb = self.addCheckBox(k, self.onCheckBox)
|
cb = self.addCheckBox(k, self.onCheckBox)
|
||||||
sz.Add(cb, pos = (2, 1))
|
sz.Add(cb, pos = (2, 1))
|
||||||
|
|
||||||
k = 'DEBUG'
|
k = 'USE_WATCHDOG'
|
||||||
cb = self.addCheckBox(k, self.onCheckBox)
|
cb = self.addCheckBox(k, self.onCheckBox)
|
||||||
sz.Add(cb, pos = (3, 1))
|
sz.Add(cb, pos = (3, 1))
|
||||||
|
|
||||||
k = 'USE_WATCHDOG'
|
k = 'FAST_PWM'
|
||||||
cb = self.addCheckBox(k, self.onCheckBox)
|
cb = self.addCheckBox(k, self.onCheckBox)
|
||||||
sz.Add(cb, pos = (4, 1))
|
sz.Add(cb, pos = (4, 1))
|
||||||
|
|
||||||
k = 'FAST_PWM'
|
k = 'HEATER_SANITY_CHECK'
|
||||||
cb = self.addCheckBox(k, self.onCheckBox)
|
cb = self.addCheckBox(k, self.onCheckBox)
|
||||||
sz.Add(cb, pos = (5, 1))
|
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'
|
k = 'REPORT_TARGET_TEMPS'
|
||||||
cb = self.addCheckBox(k, self.onCheckBox)
|
cb = self.addCheckBox(k, self.onCheckBox)
|
||||||
sz.Add(cb, pos = (7, 1))
|
sz.Add(cb, pos = (6, 1))
|
||||||
|
|
||||||
k = 'REFERENCE'
|
k = 'REFERENCE'
|
||||||
ch = self.addChoice(k, self.references,
|
ch = self.addChoice(k, self.references,
|
||||||
|
|
|
||||||
13
debug.h
13
debug.h
|
|
@ -3,6 +3,19 @@
|
||||||
|
|
||||||
#include <stdint.h>
|
#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
|
#ifdef DEBUG
|
||||||
#define DEBUG_ECHO 1
|
#define DEBUG_ECHO 1
|
||||||
#define DEBUG_INFO 2
|
#define DEBUG_INFO 2
|
||||||
|
|
|
||||||
|
|
@ -506,14 +506,6 @@ DEFINE_HEATER(bed, DIO3, 1)
|
||||||
*/
|
*/
|
||||||
#define EECONFIG
|
#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
|
/** \def BANG_BANG
|
||||||
BANG_BANG
|
BANG_BANG
|
||||||
drops PID loop from heater control, reduces code size significantly (1300 bytes!)
|
drops PID loop from heater control, reduces code size significantly (1300 bytes!)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue