commented out some planner debugging, minor syntactic adjustment in stepper

This commit is contained in:
Rob Giseburt
2016-09-28 11:07:48 -05:00
parent 04c30ba21b
commit 4c94bc7fe3
2 changed files with 18 additions and 15 deletions

View File

@@ -172,14 +172,14 @@ stat_t planner_test_assertions()
(BAD_MAGIC(mr.magic_start)) || (BAD_MAGIC(mr.magic_end))) {
return(cm_panic(STAT_PLANNER_ASSERTION_FAILURE, "planner_test_assertions()"));
}
for (uint8_t i=0; i < PLANNER_BUFFER_POOL_SIZE; i++) {
if (mb.bf[i].nx == nullptr) {
_debug_trap("buffer has nullptr for nx");
}
if (mb.bf[i].pv == nullptr) {
_debug_trap("buffer has nullptr for pv");
}
}
// for (uint8_t i=0; i < PLANNER_BUFFER_POOL_SIZE; i++) {
// if (mb.bf[i].nx == nullptr) {
// _debug_trap("buffer has nullptr for nx");
// }
// if (mb.bf[i].pv == nullptr) {
// _debug_trap("buffer has nullptr for pv");
// }
// }
return (STAT_OK);
}