odDebugInit() always neccessary?

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
mschumann
Posts: 14
Joined: Thu Jan 29, 2009 8:01 pm

odDebugInit() always neccessary?

Post by mschumann » Sun Jun 07, 2009 6:07 pm

As the title says, is odDebugInit() always necessary? Can I omit the debugging code somehow?

christian
Objective Development
Objective Development
Posts: 1443
Joined: Thu Nov 09, 2006 11:46 am

Re: odDebugInit() always neccessary?

Post by christian » Sun Jun 07, 2009 8:52 pm

If you compile with -DDEBUG_LEVEL=0 or omit the define for DEBUG_LEVEL, all debug code is omitted. odDebugInit() emits code only if your debug level is at least 1. Having that said: You can of course omit the debug functions if you don't compile with debugging enabled.

Post Reply