mirror of
https://github.com/grblHAL/core.git
synced 2026-08-17 00:22:09 +08:00
Minor bug fix, only relevant when debug output to a dedicated UART is enabled.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
## grblHAL ##
|
||||
|
||||
Latest build date is 20260318, see the [changelog](changelog.md) for details.
|
||||
Latest build date is 20260320, 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.
|
||||
|
||||
@@ -1,5 +1,21 @@
|
||||
## grblHAL changelog
|
||||
|
||||
<a name="20260320">Build 20260320
|
||||
|
||||
Core:
|
||||
|
||||
* Minor bug fix, only relevant when debug output to a dedicated UART is enabled.
|
||||
|
||||
Drivers:
|
||||
|
||||
* ESP32: fix for incorrect UART buffer flush, TX buffer was emptied when only RX buffer was called for.
|
||||
|
||||
* iMXRT1062: added tentative support for THCAD2 ADC to some boards.
|
||||
> [!NOTE]
|
||||
> Only pin 14 can be used and any low pass filter on that input must be removed since THCAD2 outputs a frequency in the range 100KHz - 1MHz depending on the input voltage.
|
||||
|
||||
---
|
||||
|
||||
<a name="20260318">Build 20260318
|
||||
|
||||
Core:
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
#else
|
||||
#define GRBL_VERSION "1.1f"
|
||||
#endif
|
||||
#define GRBL_BUILD 20260318
|
||||
#define GRBL_BUILD 20260320
|
||||
|
||||
#define GRBL_URL "https://github.com/grblHAL"
|
||||
|
||||
|
||||
@@ -381,7 +381,7 @@ FLASHMEM static bool stream_select (const io_stream_t *stream, bool add)
|
||||
} else if(mpg_enable)
|
||||
task_add_immediate(stream_mpg_set_mode, (void *)1);
|
||||
|
||||
memcpy(&hal.stream, stream, sizeof(io_stream_t));
|
||||
memcpy(&hal.stream, stream, offsetof(io_stream_t, report));
|
||||
|
||||
if(stream == usb.stream)
|
||||
hal.stream.on_linestate_changed = usb.on_linestate_changed;
|
||||
@@ -713,7 +713,7 @@ FLASHMEM bool stream_mpg_enable (bool on)
|
||||
hal.stream.reset_read_buffer = mpg.stream.reset_read_buffer;
|
||||
}
|
||||
} else if(org_stream.type != StreamType_Redirected) {
|
||||
memcpy(&hal.stream, &org_stream, sizeof(io_stream_t));
|
||||
memcpy(&hal.stream, &org_stream, offsetof(io_stream_t, report));
|
||||
org_stream.type = StreamType_Redirected;
|
||||
mpg.stream.report.override_counter = mpg.stream.report.wco_counter = 0;
|
||||
if(hal.stream.disable_rx)
|
||||
@@ -910,7 +910,7 @@ static bool debug_claim_stream (io_stream_properties_t const *stream)
|
||||
|
||||
bool debug_stream_init (void)
|
||||
{
|
||||
if(stream_enumerate_streams(debug_claim_stream))
|
||||
if(stream_enumerate_streams(debug_claim_stream, NULL))
|
||||
hal.debug.write(ASCII_EOL "UART debug active:" ASCII_EOL);
|
||||
else
|
||||
task_run_on_startup(report_warning, "Failed to initialize debug stream!");
|
||||
|
||||
@@ -381,8 +381,8 @@ typedef struct {
|
||||
set_format_ptr set_format; //!< Optional handler for setting the stream format.
|
||||
stream_set_direction_ptr set_direction; //!< Optional handler for setting the transfer direction for half-duplex communication.
|
||||
on_linestate_changed_ptr on_linestate_changed; //!< Optional handler to be called when line state changes. Set by client.
|
||||
status_report_tracking_t report; //!< Tracks when to add data to status reports.
|
||||
vfs_file_t *file; //!< File handle, non-null if streaming from a file.
|
||||
status_report_tracking_t report; //!< Tracks when to add data to status reports.
|
||||
} io_stream_t;
|
||||
|
||||
typedef struct {
|
||||
|
||||
Reference in New Issue
Block a user