From cc0f4c43ae4201a3004273cca3fc775909c43d15 Mon Sep 17 00:00:00 2001 From: proddy Date: Tue, 23 Mar 2021 22:20:38 +0100 Subject: [PATCH] formatting --- lib/PButton/PButon.cpp | 8 ++++---- src/console.cpp | 2 +- src/emsdevice.cpp | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/PButton/PButon.cpp b/lib/PButton/PButon.cpp index bfffbff84..6a728e2e9 100644 --- a/lib/PButton/PButon.cpp +++ b/lib/PButton/PButon.cpp @@ -28,9 +28,9 @@ PButton::PButton() { LongPressDelay_ = 750; // Hold period for a long press event (in ms) VLongPressDelay_ = 3000; // Hold period for a very long press event (in ms) - cb_onClick = nullptr; - cb_onDblClick = nullptr; - cb_onLongPress = nullptr; + cb_onClick = nullptr; + cb_onDblClick = nullptr; + cb_onLongPress = nullptr; cb_onVLongPress = nullptr; // Initialization of variables @@ -144,7 +144,7 @@ bool PButton::check(void) { // added code: raise OnVLongPress event when the button is released, only for pin 0 if (state_ == pullMode_ && vLongPressHappened_) { - resultEvent = 4; + resultEvent = 4; vLongPressHappened_ = false; longPressHappened_ = false; } diff --git a/src/console.cpp b/src/console.cpp index 0d0b1fced..998cccaad 100644 --- a/src/console.cpp +++ b/src/console.cpp @@ -300,7 +300,7 @@ void EMSESPShell::add_console_commands() { // if logging is off, the watch won't show anything, show force it back to NOTICE if (shell.log_level() < Level::NOTICE) { shell.log_level(Level::NOTICE); - shell.printfln(F("Force log level to notice")); + shell.printfln(F("Setting log level to Notice")); } if (watch == EMSESP::WATCH_ON) { diff --git a/src/emsdevice.cpp b/src/emsdevice.cpp index dacd1e851..3295c70a6 100644 --- a/src/emsdevice.cpp +++ b/src/emsdevice.cpp @@ -409,7 +409,7 @@ void EMSdevice::register_mqtt_cmd(const __FlashStringHelper * cmd, cmdfunction_p Command::add(device_type_, cmd, f, flag); } -// register a call back function for a specific telegram type +// register a callback function for a specific telegram type void EMSdevice::register_telegram_type(const uint16_t telegram_type_id, const __FlashStringHelper * telegram_type_name, bool fetch, process_function_p f) { telegram_functions_.emplace_back(telegram_type_id, telegram_type_name, fetch, f); }