mirror of
https://github.com/grblHAL/core.git
synced 2026-09-25 17:14:51 +08:00
Fixed typo/bug in expression precedence handling. Ref. issue #527.
This commit is contained in:
@@ -13,7 +13,7 @@ It has been written to complement grblHAL and has features such as proper keyboa
|
||||
|
||||
---
|
||||
|
||||
Latest build date is 20240527, see the [changelog](changelog.md) for details.
|
||||
Latest build date is 20240602, see the [changelog](changelog.md) for details.
|
||||
|
||||
__NOTE:__ Build 20240222 has moved the probe input to the ioPorts pool of inputs and will be allocated from it when configured.
|
||||
The change is major and _potentially dangerous_, it may damage your probe, so please _verify correct operation_ after installing this, or later, builds.
|
||||
|
||||
@@ -1,5 +1,19 @@
|
||||
## grblHAL changelog
|
||||
|
||||
<a name="20240602"/>Build 20240602
|
||||
|
||||
Core:
|
||||
|
||||
* Fixed typo/bug in expression precedence handling. Ref. [issue #527](https://github.com/grblHAL/core/issues/527).
|
||||
|
||||
Drivers:
|
||||
|
||||
* STM32F4xx, STM32F7xx: added cast to suppress compiler warning.
|
||||
|
||||
* STM32F7xx: added DMA support for SPI4, fix for SPI SCK pin reporting. WizNet code still not working.
|
||||
|
||||
---
|
||||
|
||||
<a name="20240527"/>Build 20240527
|
||||
|
||||
Core:
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
#else
|
||||
#define GRBL_VERSION "1.1f"
|
||||
#endif
|
||||
#define GRBL_BUILD 20240527
|
||||
#define GRBL_BUILD 20240602
|
||||
|
||||
#define GRBL_URL "https://github.com/grblHAL"
|
||||
|
||||
|
||||
+1
-1
@@ -791,7 +791,7 @@ status_code_t ngc_eval_expression (char *line, uint_fast8_t *pos, float *value)
|
||||
return status;
|
||||
|
||||
operators[stack_index - 1] = operators[stack_index];
|
||||
if((stack_index > 1) && precedence(operators[stack_index - 1] <= precedence(operators[stack_index - 2])))
|
||||
if(stack_index > 1 && precedence(operators[stack_index - 1]) <= precedence(operators[stack_index - 2]))
|
||||
stack_index--;
|
||||
else
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user