From 0678af955193008c046c475ae2423de978f1d4d6 Mon Sep 17 00:00:00 2001 From: elral <3263285+elral@users.noreply.github.com> Date: Sun, 14 Jan 2024 13:28:29 +0100 Subject: [PATCH 1/2] better explanations for power saving mode --- Template/MyCustomClass.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Template/MyCustomClass.cpp b/Template/MyCustomClass.cpp index 903f3ef..d716185 100644 --- a/Template/MyCustomClass.cpp +++ b/Template/MyCustomClass.cpp @@ -35,9 +35,10 @@ void MyCustomClass::set(int16_t messageID, char *setPoint) Each messageID has it's own value check for the messageID and define what to do. Important Remark! - MessageID == -1 will be send from the connector when Mobiflight is closed - Put in your code to shut down your custom device (e.g. clear a display) - MessageID == -2 will be send from the connector when PowerSavingMode is entered + MessageID == -2 will be send from the board when PowerSavingMode is set + Message will be "0" for leaving and "1" for entering PowerSavingMode + MessageID == -1 will be send from the connector when Connector stops running + Message will be "0" for leaving and "1" for entering PowerSavingMode Put in your code to enter this mode (e.g. clear a display) ********************************************************************************** */ From b03703723b4226b904927a1ea65fdb7c76cdda8f Mon Sep 17 00:00:00 2001 From: elral <3263285+elral@users.noreply.github.com> Date: Wed, 17 Jan 2024 13:15:03 +0100 Subject: [PATCH 2/2] stop mode without argument --- Template/MyCustomClass.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/Template/MyCustomClass.cpp b/Template/MyCustomClass.cpp index d716185..1193b80 100644 --- a/Template/MyCustomClass.cpp +++ b/Template/MyCustomClass.cpp @@ -38,7 +38,6 @@ void MyCustomClass::set(int16_t messageID, char *setPoint) MessageID == -2 will be send from the board when PowerSavingMode is set Message will be "0" for leaving and "1" for entering PowerSavingMode MessageID == -1 will be send from the connector when Connector stops running - Message will be "0" for leaving and "1" for entering PowerSavingMode Put in your code to enter this mode (e.g. clear a display) ********************************************************************************** */