summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--digital/io-hub/src/robospierre/path.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/digital/io-hub/src/robospierre/path.c b/digital/io-hub/src/robospierre/path.c
index 049c577f..4f871213 100644
--- a/digital/io-hub/src/robospierre/path.c
+++ b/digital/io-hub/src/robospierre/path.c
@@ -247,9 +247,9 @@ path_blocking (uint8_t a, uint8_t b, int16_t *dp)
&& vb.x < PG_WIDTH - BOT_GREEN_ELEMENT_PLACE_DISTANCE_MM)
|| (va.x < PG_WIDTH - BOT_GREEN_ELEMENT_PLACE_DISTANCE_MM
&& vb.x > PG_WIDTH - BOT_GREEN_ELEMENT_PLACE_DISTANCE_MM))
- blocking = 1;
+ return 1;
if (a_green && b_green)
- blocking = 1;
+ return 1;
if (a_green || b_green)
factor = 4;
/* Test for a blocking obstacle. */