summaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorMark Russell <mruss660@gmail.com>2021-09-13 16:05:35 -0400
committerMark Russell <mruss660@gmail.com>2021-09-13 16:05:35 -0400
commit2bf339a3f8319d68dfe657a53020c1f7977c4eb7 (patch)
treee0d3cff80fba4daec0e5c245c5a59c57c3027914 /src/components
parentbfe13d9d6849cf37f2d5a011990af85a1b503672 (diff)
License header fix, add missing braces
Diffstat (limited to 'src/components')
-rw-r--r--src/components/alarm/AlarmController.cpp9
-rw-r--r--src/components/alarm/AlarmController.h6
2 files changed, 12 insertions, 3 deletions
diff --git a/src/components/alarm/AlarmController.cpp b/src/components/alarm/AlarmController.cpp
index 31a31912..2532a4a1 100644
--- a/src/components/alarm/AlarmController.cpp
+++ b/src/components/alarm/AlarmController.cpp
@@ -1,13 +1,17 @@
-/* Copyright (C) 2021 JF, Adam Pigg, Avamander
+/* Copyright (C) 2021 mruss77, Florian
+
This file is part of InfiniTime.
+
InfiniTime is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
+
InfiniTime is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
+
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
@@ -28,8 +32,9 @@ APP_TIMER_DEF(alarmAppTimer);
namespace {
void SetOffAlarm(void* p_context) {
auto* controller = static_cast<Pinetime::Controllers::AlarmController*>(p_context);
- if (controller != nullptr)
+ if (controller != nullptr) {
controller->SetOffAlarmNow();
+ }
}
}
diff --git a/src/components/alarm/AlarmController.h b/src/components/alarm/AlarmController.h
index 140c9c80..7c43b89e 100644
--- a/src/components/alarm/AlarmController.h
+++ b/src/components/alarm/AlarmController.h
@@ -1,13 +1,17 @@
-/* Copyright (C) 2021 JF, Adam Pigg, Avamander
+/* Copyright (C) 2021 mruss77, Florian
+
This file is part of InfiniTime.
+
InfiniTime is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
+
InfiniTime is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
+
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/