summaryrefslogtreecommitdiffhomepage
path: root/digital/io-hub/src/apbirthday/top.cc
diff options
context:
space:
mode:
authorNicolas Schodet2013-04-10 00:42:00 +0200
committerNicolas Schodet2013-04-10 01:00:49 +0200
commitc6fb6460e3b71380049326688a1d5ade10dc964e (patch)
treefc6730c230dad39983dee0d3f274b255a456aef8 /digital/io-hub/src/apbirthday/top.cc
parentbbd0d642484b2865b8290e70e5b7c4ba45a41856 (diff)
digital/io-hub/src/apbirthday: make a better decision on follow direction
Diffstat (limited to 'digital/io-hub/src/apbirthday/top.cc')
-rw-r--r--digital/io-hub/src/apbirthday/top.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/digital/io-hub/src/apbirthday/top.cc b/digital/io-hub/src/apbirthday/top.cc
index 0f3f60f5..f5051b0e 100644
--- a/digital/io-hub/src/apbirthday/top.cc
+++ b/digital/io-hub/src/apbirthday/top.cc
@@ -68,9 +68,7 @@ top_cake_angle_robot ()
return top_cake_angle (pos.v);
}
-/// Compute the candle to blow for a given angle, when going in the given
-/// direction.
-static int
+int
top_candle_for_angle (uint16_t a, Candles::Floor floor, int dir_sign)
{
/// Information for each floor.