D.R.racer
452742d3a0
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 09:11:16 +01:00
Guðni Már Gilbert
8c873c8a53
cleanup: unit tests: Remove unused Catch namespace
2023-06-04 14:06:03 +00:00
Guðni Már Gilbert
353affb9f3
Optimise Catch2 V3 includes + fix a few cases of missing includes
2022-10-22 15:41:44 +02:00
Guðni Már Gilbert
45f70e004c
Update CMake integration for Catch v3.1.0
2022-10-22 15:41:44 +02:00
D.R.racer
5b9c6ec36e
Fix (workaround) LED blink when millis overflow + unit test
2021-10-18 16:30:08 +02:00
Alex Voinea
36e63e678c
Fix tests
2021-08-23 08:18:47 +02:00
D.R.racer
2053729a75
Fix LED unit tests
2021-08-04 11:40:02 +02:00
D.R.racer
2f5dff6c5b
Introduce short namespace aliases
...
especially for modules
2021-08-04 11:03:56 +02:00
Alan Dragomirecký
cf5b1c3955
Do not use hard-to-read relative paths in CMake
2021-07-12 09:09:21 +02:00
D.R.racer
ede475c5a6
Introduce Timebase module, refactor timing code + unit tests
2021-06-21 10:22:17 +02:00
D.R.racer
925201d77a
Basic unit test structure for the logic layer
...
It compiles the Cut Filament unit test with all the necessary components.
Still, the unit test does nothing.
2021-06-21 10:22:17 +02:00
D.R.racer
bd335ec30d
Unit test for LEDs interface + fixes
2021-05-26 11:39:24 +02:00
D.R.racer
c377674aee
Prepare unit tests for LEDs
2021-05-25 12:33:50 +02:00