From b6844e6f2baf8fb39a5922ad4d11c738c13917a6 Mon Sep 17 00:00:00 2001 From: Ralph Martin Date: Sat, 4 Jul 2020 07:26:11 +0100 Subject: [PATCH] Update main.cpp A rate is a frequency. Frequency is 1/time. The terminology in the example is incorrect. This is a DELAY, not a RATE. Please use technical words correctly! --- main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.cpp b/main.cpp index ce08a679..4d0af3aa 100644 --- a/main.cpp +++ b/main.cpp @@ -6,8 +6,8 @@ #include "mbed.h" -// Blinking rate in milliseconds -#define BLINKING_RATE 500ms +// Blinking delay in milliseconds +#define BLINKING_DELAY 500ms int main() @@ -17,6 +17,6 @@ int main() while (true) { led = !led; - ThisThread::sleep_for(BLINKING_RATE); + ThisThread::sleep_for(BLINKING_DELAY); } }