aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster/fsm-misc.c
diff options
context:
space:
mode:
authorSelene ToyKeeper2020-07-21 20:56:34 -0600
committerSelene ToyKeeper2020-07-21 20:56:34 -0600
commit9c9135640db4a71528765cd04ee0fb0fb7cd7938 (patch)
tree2673060fe7cc0f46b07d86dc772c9a51d37b8962 /spaghetti-monster/fsm-misc.c
parentmerged fsm branch (mostly because D4v2.5 build targets were merged into KR4, (diff)
downloadanduril-9c9135640db4a71528765cd04ee0fb0fb7cd7938.tar.gz
anduril-9c9135640db4a71528765cd04ee0fb0fb7cd7938.tar.bz2
anduril-9c9135640db4a71528765cd04ee0fb0fb7cd7938.zip
started refactoring anduril into individual files...
... messy and very incomplete, but it's a start, and at least it still compiles. (the overall structure is ... weird. mostly because of compiling the entire program plus libraries in a single step, as a single file, to make -fwhole-program work)
Diffstat (limited to '')
-rw-r--r--spaghetti-monster/fsm-misc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/spaghetti-monster/fsm-misc.c b/spaghetti-monster/fsm-misc.c
index 82be745..eaa6fb3 100644
--- a/spaghetti-monster/fsm-misc.c
+++ b/spaghetti-monster/fsm-misc.c
@@ -222,6 +222,7 @@ void rgb_led_set(uint8_t value) {
#endif // ifdef USE_AUX_RGB_LEDS
#ifdef USE_TRIANGLE_WAVE
+// TODO: remove this, it's in the wrong file
uint8_t triangle_wave(uint8_t phase) {
uint8_t result = phase << 1;
if (phase > 127) result = 255 - result;