projects
/
bbctrl-firmware
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80c05c6
)
Set bf->run_state eariler for planning
author
Joseph Coffland
<joseph@cauldrondevelopment.com>
Sun, 11 Sep 2016 15:24:56 +0000
(08:24 -0700)
committer
Joseph Coffland
<joseph@cauldrondevelopment.com>
Sun, 11 Sep 2016 15:24:56 +0000
(08:24 -0700)
src/plan/buffer.c
patch
|
blob
|
history
diff --git
a/src/plan/buffer.c
b/src/plan/buffer.c
index a9e30ccf75819f1b2bbeae37059899afba0d10f4..7cd192985b34a5d38132f50db7da1cc2eac718e0 100644
(file)
--- a/
src/plan/buffer.c
+++ b/
src/plan/buffer.c
@@
-119,6
+119,7
@@
bool mp_queue_is_empty() {return mb.tail == mb.head;}
/// Get pointer to next buffer, waiting until one is available.
mp_buffer_t *mp_queue_get_tail() {
while (!mb.space) continue; // Wait for a buffer
+ mb.tail->run_state = MOVE_NEW;
return mb.tail;
}
@@
-136,7
+137,6
@@
void mp_queue_push(buffer_cb_t cb, bool plan, uint32_t line) {
mb.tail->plan = plan;
mb.tail->cb = cb;
mb.tail->line = line;
- mb.tail->run_state = MOVE_NEW;
_push();
}