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:
Terje Io
2025-11-11 16:51:08 +01:00
parent 18d6272060
commit e272f773b5
13 changed files with 173 additions and 55 deletions
+2 -1
View File
@@ -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