We need to reduce the optimization level in order to be able to
perform a debugging of the applications, without this there is
an strange behaviour while debugging.
Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
The first time that the example is run there was an error
related with an invalid value for the duty cycle.
With this fix we set the duty cycle to 0 when we close the example.
Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>