1
0
Fork 0

License header fix, add missing braces

This commit is contained in:
Mark Russell 2021-09-13 16:05:35 -04:00
parent bfe13d9d68
commit 2bf339a3f8
4 changed files with 22 additions and 5 deletions

View file

@ -1,13 +1,17 @@
/* Copyright (C) 2021 JF, Adam Pigg, Avamander /* Copyright (C) 2021 mruss77, Florian
This file is part of InfiniTime. This file is part of InfiniTime.
InfiniTime is free software: you can redistribute it and/or modify InfiniTime is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published it under the terms of the GNU General Public License as published
by the Free Software Foundation, either version 3 of the License, or by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
InfiniTime is distributed in the hope that it will be useful, InfiniTime is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
@ -28,10 +32,11 @@ APP_TIMER_DEF(alarmAppTimer);
namespace { namespace {
void SetOffAlarm(void* p_context) { void SetOffAlarm(void* p_context) {
auto* controller = static_cast<Pinetime::Controllers::AlarmController*>(p_context); auto* controller = static_cast<Pinetime::Controllers::AlarmController*>(p_context);
if (controller != nullptr) if (controller != nullptr) {
controller->SetOffAlarmNow(); controller->SetOffAlarmNow();
} }
} }
}
void AlarmController::Init(System::SystemTask* systemTask) { void AlarmController::Init(System::SystemTask* systemTask) {
app_timer_create(&alarmAppTimer, APP_TIMER_MODE_SINGLE_SHOT, SetOffAlarm); app_timer_create(&alarmAppTimer, APP_TIMER_MODE_SINGLE_SHOT, SetOffAlarm);

View file

@ -1,13 +1,17 @@
/* Copyright (C) 2021 JF, Adam Pigg, Avamander /* Copyright (C) 2021 mruss77, Florian
This file is part of InfiniTime. This file is part of InfiniTime.
InfiniTime is free software: you can redistribute it and/or modify InfiniTime is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published it under the terms of the GNU General Public License as published
by the Free Software Foundation, either version 3 of the License, or by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
InfiniTime is distributed in the hope that it will be useful, InfiniTime is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */

View file

@ -1,13 +1,17 @@
/* Copyright (C) 2021 JF, Adam Pigg, Avamander /* Copyright (C) 2021 mruss77, Florian
This file is part of InfiniTime. This file is part of InfiniTime.
InfiniTime is free software: you can redistribute it and/or modify InfiniTime is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published it under the terms of the GNU General Public License as published
by the Free Software Foundation, either version 3 of the License, or by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
InfiniTime is distributed in the hope that it will be useful, InfiniTime is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */

View file

@ -1,13 +1,17 @@
/* Copyright (C) 2021 JF, Adam Pigg, Avamander /* Copyright (C) 2021 mruss77, Florian
This file is part of InfiniTime. This file is part of InfiniTime.
InfiniTime is free software: you can redistribute it and/or modify InfiniTime is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published it under the terms of the GNU General Public License as published
by the Free Software Foundation, either version 3 of the License, or by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
InfiniTime is distributed in the hope that it will be useful, InfiniTime is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */