From de14227b6d569f4b4dc9b8e5e7cec5ddd811b68b Mon Sep 17 00:00:00 2001 From: Nick Van Doorn Date: Tue, 5 Mar 2019 17:01:42 -0800 Subject: Fix comment --- core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core.c b/core.c index 9a5aab3..d671d0c 100644 --- a/core.c +++ b/core.c @@ -24,7 +24,9 @@ enum RobotCorrection_t { MOVE_STRAIGHT = 0, MOVE_RIGHT = 1, MOVE_LEFT = 2 }; -// use a global +// use a global context structure +// to avoid coupling our routines +// to the global state struct RobotContext_t { enum RobotState_t state; enum RobotState_t prevState; -- cgit v1.2.3