From bd035793df3164d2f95446d83d8424172f4109f7 Mon Sep 17 00:00:00 2001 From: hathach Date: Thu, 6 Apr 2017 15:48:04 +0700 Subject: [PATCH] add comment explanation for sleep() --- .../Bluefruit52Lib/examples/Peripheral/bleuart/bleuart.ino | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/Bluefruit52Lib/examples/Peripheral/bleuart/bleuart.ino b/libraries/Bluefruit52Lib/examples/Peripheral/bleuart/bleuart.ino index ff1d4b8f..8055e098 100644 --- a/libraries/Bluefruit52Lib/examples/Peripheral/bleuart/bleuart.ino +++ b/libraries/Bluefruit52Lib/examples/Peripheral/bleuart/bleuart.ino @@ -105,6 +105,8 @@ void loop() Serial.write(ch); } + // Equavilent to __WFE (Wait For Event) instruction. + // It is a hint to allow CPU to enter low-power state until an event occured sleep(); }