summaryrefslogtreecommitdiff
path: root/n/line-follower/src/linesensor.c
diff options
context:
space:
mode:
Diffstat (limited to 'n/line-follower/src/linesensor.c')
-rw-r--r--n/line-follower/src/linesensor.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/n/line-follower/src/linesensor.c b/n/line-follower/src/linesensor.c
index 8daf00f..c43165a 100644
--- a/n/line-follower/src/linesensor.c
+++ b/n/line-follower/src/linesensor.c
@@ -1,3 +1,5 @@
+#ifndef linesensor_c
+#define linesensor_c
/* linesensor.c */
/* linefol - Line follower robot on a ATmega128. {{{
*
@@ -25,7 +27,7 @@
/** The line position between -8 and +8. */
static int8_t linepos;
-/** The number of bits seeing the line. */
+/** The number of bits seeing a line ( ~= width of the line). */
static int8_t lineActiveBits;
/* +AutoDec */
@@ -41,7 +43,7 @@ linesensor_poll (void);
/** Poll linesensor and returns the state on the RS232 output.
* For test, calibration and verification. */
static inline void
-linesensor_poll_human (void);
+linesensor_print (void);
/* -AutoDec */
@@ -86,7 +88,7 @@ linesensor_poll (void)
/** Poll linesensor and returns the state on the RS232 output.
* For test, calibration and verification. */
static inline void
-linesensor_poll_human (void)
+linesensor_print (void)
{
uint8_t c, a, i;
c = PINC;
@@ -112,3 +114,4 @@ linesensor_poll_human (void)
rs232_putc ('\r');
}
+#endif // linesensor_c