diff options
author | Christian Starkjohann <cs+github@obdev.at> | 2013-11-12 11:43:58 +0100 |
---|---|---|
committer | Christian Starkjohann <cs+github@obdev.at> | 2013-11-12 11:43:58 +0100 |
commit | be46bb29fab23ff88f1314a4f4aa07d5e5287ed5 (patch) | |
tree | 7c14f7c52ea71fe9bc645a31a84751e42109d7bd /examples/hid-mouse | |
parent | f1311e1cd5a841906fb9f26a49e49d97efe21b51 (diff) | |
download | v-usb-be46bb29fab23ff88f1314a4f4aa07d5e5287ed5.tar.gz v-usb-be46bb29fab23ff88f1314a4f4aa07d5e5287ed5.tar.bz2 v-usb-be46bb29fab23ff88f1314a4f4aa07d5e5287ed5.zip |
Improved comment about watchdog in example code.
Diffstat (limited to 'examples/hid-mouse')
-rw-r--r-- | examples/hid-mouse/firmware/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/hid-mouse/firmware/main.c b/examples/hid-mouse/firmware/main.c index f13361e..e986731 100644 --- a/examples/hid-mouse/firmware/main.c +++ b/examples/hid-mouse/firmware/main.c @@ -128,8 +128,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 |