From cc12d46390a6948033360ac9d2de490cc5940956 Mon Sep 17 00:00:00 2001 From: Alba Mendez Date: Fri, 29 Mar 2024 19:55:10 +0100 Subject: [PATCH] update outdated explanation that doesn't match snippet #145 updated the code snippet to remove a bunch of code that is no longer needed, but did not remove the bullet point from the explanation, making it confusing to read. it says "The next block ..." but there is no such block. --- .../generate-project/esp-template.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/writing-your-own-application/generate-project/esp-template.md b/src/writing-your-own-application/generate-project/esp-template.md index 48b4b0f..ee46770 100644 --- a/src/writing-your-own-application/generate-project/esp-template.md +++ b/src/writing-your-own-application/generate-project/esp-template.md @@ -102,9 +102,6 @@ Inside the `main` function we can find: - Here we configure the system clocks - in this case, boost to the maxiumum for the chip - We freeze the clocks, which means we can't change them later - Some drivers need a reference to the clocks to know how to calculate rates and durations -- The next block of code instantiates some peripherals (namely RTC and the two timer groups) to disable the watchdog, which is armed after boot - - Without that code, the SoC would reboot after some time - - There is another way to prevent the reboot: feeding the watchdog - `println!("Hello world!");` - Prints "Hello world!" - `loop {}`