mirror of
https://github.com/grblHAL/core.git
synced 2026-08-18 00:47:25 +08:00
Fix for coolant issue when resetting from feed hold state.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
## grblHAL ##
|
||||
|
||||
Latest build date is 20241230, see the [changelog](changelog.md) for details.
|
||||
Latest build date is 20250102, see the [changelog](changelog.md) for details.
|
||||
|
||||
> [!NOTE]
|
||||
> A settings reset will be performed on an update of builds prior to 20241208. Backup and restore of settings is recommended.
|
||||
@@ -93,4 +93,4 @@ G/M-codes not supported by [legacy Grbl](https://github.com/gnea/grbl/wiki) are
|
||||
Some [plugins](https://github.com/grblHAL/plugins) implements additional M-codes.
|
||||
|
||||
---
|
||||
20241230
|
||||
20250102
|
||||
|
||||
+18
-1
@@ -1,5 +1,22 @@
|
||||
## grblHAL changelog
|
||||
|
||||
<a name="20250102">20250102
|
||||
|
||||
Core:
|
||||
|
||||
* Fix for coolant issue when resetting from feed hold state. Ref. STMF32F4xx issue [#205](https://github.com/grblHAL/STM32F4xx/issues/205).
|
||||
|
||||
Drivers:
|
||||
|
||||
* STM32F4xx, STM32F7xx: some minor fixes.
|
||||
|
||||
Plugins:
|
||||
|
||||
* Spindle: fix for alarm 14 beeing raised on reset. Ref. STMF32F4xx issue [#205](https://github.com/grblHAL/STM32F4xx/issues/205).
|
||||
Added retry handling to Modbus RTU driver, updated VFD spindle drivers accordingly.
|
||||
|
||||
---
|
||||
|
||||
<a name="20250101">20250101
|
||||
|
||||
Drivers:
|
||||
@@ -8,7 +25,7 @@ Drivers:
|
||||
|
||||
* iMXRT1062: fixed regression causing compiler failure if laser PPI plugin is enabled.
|
||||
|
||||
* STM32F4xx: updates for Web Builder.
|
||||
* STM32F1xx, STM32F4xx: updates for Web Builder.
|
||||
|
||||
Plugins:
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
Part of grblHAL
|
||||
|
||||
Copyright (c) 2017-2024 Terje Io
|
||||
Copyright (c) 2017-2025 Terje Io
|
||||
Copyright (c) 2015-2016 Sungeun K. Jeon for Gnea Research LLC
|
||||
|
||||
grblHAL is free software: you can redistribute it and/or modify
|
||||
@@ -42,7 +42,7 @@
|
||||
#else
|
||||
#define GRBL_VERSION "1.1f"
|
||||
#endif
|
||||
#define GRBL_BUILD 20241230
|
||||
#define GRBL_BUILD 20250102
|
||||
|
||||
#define GRBL_URL "https://github.com/grblHAL"
|
||||
|
||||
|
||||
@@ -65,6 +65,8 @@ typedef struct {
|
||||
} modbus_message_t;
|
||||
|
||||
typedef struct {
|
||||
uint8_t retries;
|
||||
uint16_t retry_delay;
|
||||
void (*on_rx_packet)(modbus_message_t *msg);
|
||||
void (*on_rx_exception)(uint8_t code, void *context);
|
||||
} modbus_callbacks_t;
|
||||
|
||||
+1
-1
@@ -362,7 +362,7 @@ bool protocol_main_loop (void)
|
||||
// completed. In either case, auto-cycle start, if enabled, any queued moves.
|
||||
protocol_auto_cycle_start();
|
||||
|
||||
if(!protocol_execute_realtime() && sys.abort) // Runtime command check point.
|
||||
if(sys.abort || !protocol_execute_realtime()) // Runtime command check point.
|
||||
return !sys.flags.exit; // Bail to main() program loop to reset system.
|
||||
|
||||
sys.cancel = false;
|
||||
|
||||
+9
-9
@@ -3,7 +3,7 @@
|
||||
|
||||
Part of grblHAL
|
||||
|
||||
Copyright (c) 2017-2024 Terje Io
|
||||
Copyright (c) 2017-2025 Terje Io
|
||||
Copyright (c) 2011-2015 Sungeun K. Jeon
|
||||
Copyright (c) 2009-2011 Simen Svale Skogsrud
|
||||
|
||||
@@ -1070,13 +1070,13 @@ static status_code_t set_linear_piece (setting_id_t id, char *svalue)
|
||||
float rpm, start, end;
|
||||
|
||||
if(*svalue == '\0' || (svalue[0] == '0' && svalue[1] == '\0')) {
|
||||
settings.spindle.pwm_piece[idx].rpm = NAN;
|
||||
settings.spindle.pwm_piece[idx].start =
|
||||
settings.spindle.pwm_piece[idx].end = 0.0f;
|
||||
settings.pwm_spindle.pwm_piece[idx].rpm = NAN;
|
||||
settings.pwm_spindle.pwm_piece[idx].start =
|
||||
settings.pwm_spindle.pwm_piece[idx].end = 0.0f;
|
||||
} else if(sscanf(svalue, "%f,%f,%f", &rpm, &start, &end) == 3) {
|
||||
settings.spindle.pwm_piece[idx].rpm = rpm;
|
||||
settings.spindle.pwm_piece[idx].start = start;
|
||||
settings.spindle.pwm_piece[idx].end = end;
|
||||
settings.pwm_spindle.pwm_piece[idx].rpm = rpm;
|
||||
settings.pwm_spindle.pwm_piece[idx].start = start;
|
||||
settings.pwm_spindle.pwm_piece[idx].end = end;
|
||||
//?? if(idx == 0)
|
||||
// settings.spindle.rpm_min = rpm;
|
||||
} else
|
||||
@@ -1091,10 +1091,10 @@ static char *get_linear_piece (setting_id_t id)
|
||||
|
||||
uint32_t idx = id - Setting_LinearSpindlePiece1;
|
||||
|
||||
if(isnan(settings.spindle.pwm_piece[idx].rpm))
|
||||
if(isnan(settings.pwm_spindle.pwm_piece[idx].rpm))
|
||||
*buf = '\0';
|
||||
else
|
||||
snprintf(buf, sizeof(buf), "%g,%g,%g", settings.spindle.pwm_piece[idx].rpm, settings.spindle.pwm_piece[idx].start, settings.spindle.pwm_piece[idx].end);
|
||||
snprintf(buf, sizeof(buf), "%g,%g,%g", settings.pwm_spindle.pwm_piece[idx].rpm, settings.pwm_spindle.pwm_piece[idx].start, settings.pwm_spindle.pwm_piece[idx].end);
|
||||
|
||||
return buf;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user