|
@@ -397,8 +397,12 @@ void Planner::check_axes_activity() {
|
397
|
397
|
#endif
|
398
|
398
|
|
399
|
399
|
#if ENABLED(BARICUDA)
|
400
|
|
- unsigned char tail_valve_pressure = baricuda_valve_pressure,
|
401
|
|
- tail_e_to_p_pressure = baricuda_e_to_p_pressure;
|
|
400
|
+ #if HAS_HEATER_1
|
|
401
|
+ unsigned char tail_valve_pressure = baricuda_valve_pressure;
|
|
402
|
+ #endif
|
|
403
|
+ #if HAS_HEATER_2
|
|
404
|
+ unsigned char tail_e_to_p_pressure = baricuda_e_to_p_pressure;
|
|
405
|
+ #endif
|
402
|
406
|
#endif
|
403
|
407
|
|
404
|
408
|
if (blocks_queued()) {
|
|
@@ -411,8 +415,12 @@ void Planner::check_axes_activity() {
|
411
|
415
|
|
412
|
416
|
#if ENABLED(BARICUDA)
|
413
|
417
|
block = &block_buffer[block_buffer_tail];
|
414
|
|
- tail_valve_pressure = block->valve_pressure;
|
415
|
|
- tail_e_to_p_pressure = block->e_to_p_pressure;
|
|
418
|
+ #if HAS_HEATER_1
|
|
419
|
+ tail_valve_pressure = block->valve_pressure;
|
|
420
|
+ #endif
|
|
421
|
+ #if HAS_HEATER_2
|
|
422
|
+ tail_e_to_p_pressure = block->e_to_p_pressure;
|
|
423
|
+ #endif
|
416
|
424
|
#endif
|
417
|
425
|
|
418
|
426
|
for (uint8_t b = block_buffer_tail; b != block_buffer_head; b = next_block_index(b)) {
|