Added NDEBUG as control for watchdog timer enable. Yes, I know NDEBUG is a debated topic, but I think it fits the use case.

This commit is contained in:
skarg
2010-06-03 19:28:29 +00:00
parent ea250f422d
commit b780c7bea6
2 changed files with 8 additions and 5 deletions
+3 -3
View File
@@ -143,15 +143,15 @@ DEFINES =
OPTIMIZE_FLAGS = -mcall-prologues
OPTIMIZE_FLAGS += -finline-functions-called-once
# default is for debugging from AVR Studio
OPTIMIZATION = -Os $(OPTIMIZE_FLAGS)
DEBUGGING =
OPTIMIZATION = -O1 $(OPTIMIZE_FLAGS)
DEBUGGING = -g
ifeq (${BUILD},debug)
OPTIMIZATION = -O0
DEBUGGING = -g
endif
ifeq (${BUILD},release)
OPTIMIZATION = -Os $(OPTIMIZE_FLAGS)
DEBUGGING =
DEBUGGING = -DNDEBUG
endif
## BACnet options