commit | d2f47fc4bb9ea8647d712123b08738a411c6c707 | [log] [tgz] |
---|---|---|
author | Austin Schuh <austin@peloton-tech.com> | Sun Mar 01 00:06:27 2015 -0800 |
committer | Austin Schuh <austin@peloton-tech.com> | Sun Mar 01 03:05:15 2015 -0800 |
tree | da76a4d344dc1bc86a5ee550e9cbdb9832728ed5 | |
parent | 44cd580cb6867d781a4c5fb9208a9540341e9808 [diff] |
Fixed cancel issue with stack actor. Change-Id: I06651d5df8b636f8734192dbe8c2b0f3749f9e06
diff --git a/frc971/actors/stack_actor.cc b/frc971/actors/stack_actor.cc index 4b31451..ac2d744 100644 --- a/frc971/actors/stack_actor.cc +++ b/frc971/actors/stack_actor.cc
@@ -72,7 +72,9 @@ message.Send(); } DoProfile(bottom, -0.05, false); + if (ShouldCancel()) return true; DoProfile(bottom, 0.0, false); + if (ShouldCancel()) return true; aos::time::SleepFor(aos::time::Time::InMS(100)); return true;