From 068c5a823e3ad14e47192528a34aabe7e904c88c Mon Sep 17 00:00:00 2001 From: Reinhold Gschweicher Date: Mon, 16 May 2022 23:45:34 +0200 Subject: [PATCH] main: Fix 'N' clear new notification flag documentation The documentation for the 'N' key wrongly stated it clears all notifications. But in the code we see that just the new notification flag is reset. --- README.md | 2 +- main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c4bd956..6bb4033 100644 --- a/README.md +++ b/README.md @@ -96,7 +96,7 @@ Using the keyboard the following events can be triggered: - `m` ... let motor run for 100 ms - `M` ... let motor run for 255 ms - `n` ... send notification -- `N` ... clear all notifications +- `N` ... clear new notification flag - `b` ... connect Bluetooth - `B` ... disconnect Bluetooth - `v` ... increase battery voltage and percentage diff --git a/main.cpp b/main.cpp index 2a0fd71..19fa8ef 100644 --- a/main.cpp +++ b/main.cpp @@ -773,7 +773,7 @@ public: private: bool key_handled_r = false; // r ... enable ringing, R ... disable ringing bool key_handled_m = false; // m ... let motor run, M ... stop motor - bool key_handled_n = false; // n ... send notification, N ... clear all notifications + bool key_handled_n = false; // n ... send notification, N ... clear new notification flag bool key_handled_b = false; // b ... connect Bluetooth, B ... disconnect Bluetooth bool key_handled_v = false; // battery Voltage and percentage, v ... increase, V ... decrease bool key_handled_c = false; // c ... charging, C ... not charging