diff --git a/src/OSLikeStuff/task_scheduler/resource_checker.h b/src/OSLikeStuff/task_scheduler/resource_checker.h index 2966f7b426..ab73b1fce6 100644 --- a/src/OSLikeStuff/task_scheduler/resource_checker.h +++ b/src/OSLikeStuff/task_scheduler/resource_checker.h @@ -1,7 +1,19 @@ -// -// Created by mark on 18/01/25. -// - +/* + * Copyright © 2025 Mark Adams + * + * This file is part of The Synthstrom Audible Deluge Firmware. + * + * The Synthstrom Audible Deluge Firmware 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. + * + * This program 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 . + */ #ifndef RESOURCE_CHECKER_H #define RESOURCE_CHECKER_H #include diff --git a/src/OSLikeStuff/task_scheduler/task_scheduler_c_api.cpp b/src/OSLikeStuff/task_scheduler/task_scheduler_c_api.cpp index f68cc87032..51e97f2ce7 100644 --- a/src/OSLikeStuff/task_scheduler/task_scheduler_c_api.cpp +++ b/src/OSLikeStuff/task_scheduler/task_scheduler_c_api.cpp @@ -1,6 +1,20 @@ -// -// Created by Mark Adams on 2024-12-05. -// +/* + * Copyright © 2025 Mark Adams + * + * This file is part of The Synthstrom Audible Deluge Firmware. + * + * The Synthstrom Audible Deluge Firmware 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. + * + * This program 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 . + */ + #include "OSLikeStuff/scheduler_api.h" #include "OSLikeStuff/task_scheduler/task_scheduler.h" #include "resource_checker.h" diff --git a/tests/unit/scheduler_tests.cpp b/tests/unit/scheduler_tests.cpp index 9b046a45e7..a5d6d11d37 100644 --- a/tests/unit/scheduler_tests.cpp +++ b/tests/unit/scheduler_tests.cpp @@ -14,7 +14,7 @@ #endif uint8_t currentlyAccessingCard = false; -uint32_t usbLock = false; +uint32_t usbLock = false; bool sdRoutineLock = false; namespace { @@ -83,7 +83,8 @@ TEST(Scheduler, schedule) { TEST(Scheduler, remove) { static SelfRemoving selfRemoving; - TaskID id = addRepeatingTask([]() { selfRemoving.runFiveTimes(); }, 0, 0.001, 0.001, 0.001, "run five times", NO_RESOURCE); + TaskID id = + addRepeatingTask([]() { selfRemoving.runFiveTimes(); }, 0, 0.001, 0.001, 0.001, "run five times", NO_RESOURCE); selfRemoving.id = id; mock().clear(); // will be called one less time due to the time the sleep takes not being zero