Skip to content

Commit

Permalink
Apply PR#562
Browse files Browse the repository at this point in the history
  • Loading branch information
Paciente8159 committed Nov 11, 2023
1 parent 47c8416 commit 5e5b3b4
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 9 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@

# Changelog

## [1.7.x-bugfix]

### Changed

- modified UART ISR name to be seamless between Uno and Mega (#556)

### Fixed
- fixed software bound checking with option SET_ORIGIN_AT_HOME_POS enabled (#541)
- fixed system menu variable incorrect types for some settings (#539)
- fixed coolant planner mask update control and removed deprecated coolant pin assert (#562)


## [1.7.6] - 17-10-2023

### Changed
Expand Down
9 changes: 3 additions & 6 deletions uCNC/src/core/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -2340,20 +2340,17 @@ static uint8_t parser_mcode_word(uint8_t code, uint8_t mantissa, parser_state_t
case 6:
new_group |= GCODE_GROUP_TOOLCHANGE;
break;
#if ASSERT_PIN(COOLANT_MIST)
case 7:
#endif
#ifdef M7_SAME_AS_M8
case 7:
#endif
case 8:
#ifdef ENABLE_COOLANT
cmd->groups |= GCODE_GROUP_COOLANT; // word overlapping allowed
#if ASSERT_PIN(COOLANT_MIST)
#ifndef M7_SAME_AS_M8
new_state->groups.coolant |= ((code == 8) ? M8 : M7);
#else
new_state->groups.coolant |= M8;
#endif
return STATUS_OK;
#endif
case 9:
cmd->groups |= GCODE_GROUP_COOLANT;
new_state->groups.coolant = M9;
Expand Down
4 changes: 2 additions & 2 deletions uCNC/src/core/planner.c
Original file line number Diff line number Diff line change
Expand Up @@ -509,8 +509,8 @@ void planner_sync_tools(motion_data_t *block_data)
{
#if TOOL_COUNT > 0
g_planner_state.spindle_speed = block_data->spindle;
g_planner_state.state_flags.reg &= ~STATE_COPY_FLAG_MASK;
g_planner_state.state_flags.reg |= (block_data->motion_flags.reg & STATE_COPY_FLAG_MASK);
g_planner_state.state_flags.reg &= ~TOOL_STATE_COPY_FLAG_MASK;
g_planner_state.state_flags.reg |= (block_data->motion_flags.reg & TOOL_STATE_COPY_FLAG_MASK);
#endif
}

Expand Down
2 changes: 1 addition & 1 deletion uCNC/src/core/planner.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ extern "C"
#define PLANNER_MOTION_EXACT_STOP 64
#define PLANNER_MOTION_CONTINUOUS 128

#define STATE_COPY_FLAG_MASK 0x1F
#define TOOL_STATE_COPY_FLAG_MASK 0x78
typedef motion_flags_t planner_flags_t;

typedef struct planner_block_
Expand Down

0 comments on commit 5e5b3b4

Please sign in to comment.