Prusa-Firmware-MMU/tests/unit
D.R.racer b2dd038814 LEDs: unify common app-logic behavior into functions
In the entire code base, we basically use 4 LED scenarios:
- all off
- active slot green on
- active slot green blinking
- active slot red blinking

Compacting this behaviour into 4 functions saves in total ~140B - which is huge.
It's not an entirely clean solution, LEDs should not know anything about globals::ActiveSlot, but the savings are more important.
Ideally, such an optimization could have been done by the compiler.
2025-12-01 10:48:28 +01:00
..
application Change minimum unit tests to reflect new version nr 2023-07-20 10:28:58 +02:00
hal CircularIndex: add tests for non-power-of-two sizes 2023-07-28 15:48:14 +02:00
logic UnloadFilament: update unit tests + LED signalization 2025-12-01 10:48:28 +01:00
modules LEDs: unify common app-logic behavior into functions 2025-12-01 10:48:28 +01:00
CMakeLists.txt Update CMake integration for Catch v3.1.0 2022-10-22 15:41:44 +02:00
system_test.cpp Optimise Catch2 V3 includes + fix a few cases of missing includes 2022-10-22 15:41:44 +02:00
test_main.cpp Optimise Catch2 V3 includes + fix a few cases of missing includes 2022-10-22 15:41:44 +02:00