From be46bb29fab23ff88f1314a4f4aa07d5e5287ed5 Mon Sep 17 00:00:00 2001 From: Christian Starkjohann Date: Tue, 12 Nov 2013 11:43:58 +0100 Subject: Improved comment about watchdog in example code. --- examples/custom-class/firmware/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'examples/custom-class/firmware/main.c') diff --git a/examples/custom-class/firmware/main.c b/examples/custom-class/firmware/main.c index 0222729..5c07a7f 100644 --- a/examples/custom-class/firmware/main.c +++ b/examples/custom-class/firmware/main.c @@ -66,8 +66,9 @@ int __attribute__((noreturn)) main(void) uchar i; wdt_enable(WDTO_1S); - /* Even if you don't use the watchdog, turn it off here. On newer devices, - * the status of the watchdog (on/off, period) is PRESERVED OVER RESET! + /* If you don't use the watchdog, replace the call above with a wdt_disable(). + * On newer devices, the status of the watchdog (on/off, period) is PRESERVED + * OVER RESET! */ /* RESET status: all port bits are inputs without pull-up. * That's the way we need D+ and D-. Therefore we don't need any -- cgit v1.2.3