mirror of
https://github.com/grblHAL/core.git
synced 2026-08-17 08:31:43 +08:00
Refactored the tool table HAL API a bit to improve functionality.
Added tool name, pocket number and some lathe specific data fields to the $# tool output when available from the tool table. If name is available it will be output as a push message on M6 if there is no message in the same block. Added support for directory up, .., to VFS. Added new option to $650 - File systems options to enable hierarchical listing of files and directories via $F and $F+ commands.
This commit is contained in:
@@ -515,6 +515,8 @@ bool stream_close (io_stream_t const *stream)
|
||||
|
||||
void stream_set_defaults (const io_stream_t *stream, uint32_t baud_rate)
|
||||
{
|
||||
stream->set_enqueue_rt_handler(protocol_enqueue_realtime_command);
|
||||
|
||||
if(stream->set_baud_rate)
|
||||
stream->set_baud_rate(baud_rate);
|
||||
|
||||
@@ -528,7 +530,6 @@ void stream_set_defaults (const io_stream_t *stream, uint32_t baud_rate)
|
||||
stream->reset_write_buffer();
|
||||
|
||||
stream->reset_read_buffer();
|
||||
stream->set_enqueue_rt_handler(protocol_enqueue_realtime_command);
|
||||
}
|
||||
|
||||
// MPG stream
|
||||
|
||||
Reference in New Issue
Block a user