Some tweaks for new Web Builder options++

This commit is contained in:
Terje Io
2023-07-18 11:47:09 +02:00
parent 6c5c3fdb65
commit f1b1776bdc
7 changed files with 22 additions and 8 deletions
+8
View File
@@ -4,6 +4,14 @@
Core:
* Some tweaks for new Web Builder options++
---
<a name="20230714"/>20230714
Core:
* Added support for traversing directory structure across file system mounts. Allows access to littlefs mount via ftp.
* Fixed inconsistent \(random\) real-time reporting of cycle start signal by adding a latch to ensure it is reported at least once.
+1
View File
@@ -236,6 +236,7 @@ typedef enum {
LaserPPI_Rate = 127, //!< 127 - M127
LaserPPI_PulseLength = 128, //!< 128 - M128
OpenPNP_SetAcceleration = 204, //!< 204 - M204
RGB_Inspection_Light = 356, //!< 356 - M356
OpenPNP_FinishMoves = 400, //!< 400 - M400
Probe_Deploy = 401, //!< 401 - M401, Marlin format
Probe_Stow = 402, //!< 402 - M402, Marlin format
+1 -1
View File
@@ -42,7 +42,7 @@
#else
#define GRBL_VERSION "1.1f"
#endif
#define GRBL_BUILD 20230714
#define GRBL_BUILD 20230718
#define GRBL_URL "https://github.com/grblHAL"
+5 -1
View File
@@ -5,7 +5,7 @@
Part of grblHAL
Copyright (c) 2020 Terje Io
Copyright (c) 2020-2023 Terje Io
Grbl is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -21,7 +21,11 @@
along with Grbl. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef ADD_MY_PLUGIN
__attribute__((weak)) void my_plugin_init (void)
{
// NOOP
}
#endif
+2 -2
View File
@@ -2169,7 +2169,7 @@ status_code_t report_time (void)
return ok ? Status_OK : Status_InvalidStatement;
}
static void report_spindle (spindle_info_t *spindle)
static void report_spindle (spindle_info_t *spindle, void *data)
{
hal.stream.write(uitoa(spindle->id));
hal.stream.write(" - ");
@@ -2187,7 +2187,7 @@ static void report_spindle (spindle_info_t *spindle)
status_code_t report_spindles (void)
{
if(!spindle_enumerate_spindles(report_spindle))
if(!spindle_enumerate_spindles(report_spindle, NULL))
hal.stream.write("No spindles registered." ASCII_EOL);
return Status_OK;
+3 -2
View File
@@ -308,9 +308,10 @@ static spindle_num_t spindle_get_num (spindle_id_t spindle_id)
/*! \brief Enumerate registered spindles by calling a callback function for each of them.
\param callback pointer to a \ref spindle_enumerate_callback_ptr type function.
\param data pointer to optional data to pass to the callback function.
\returns \a true if spindles are registered and a callback function was provided, \a false otherwise.
*/
bool spindle_enumerate_spindles (spindle_enumerate_callback_ptr callback)
bool spindle_enumerate_spindles (spindle_enumerate_callback_ptr callback, void *data)
{
if(callback == NULL || n_spindle == 0)
return false;
@@ -327,7 +328,7 @@ bool spindle_enumerate_spindles (spindle_enumerate_callback_ptr callback)
spindle.enabled = spindle.num != -1;
spindle.is_current = spindle.enabled && sys_spindle[0].hal.id == idx;
callback(&spindle);
callback(&spindle, data);
}
return true;
+2 -2
View File
@@ -234,7 +234,7 @@ typedef struct {
/*! \brief Pointer to callback function called by spindle_enumerate_spindles().
\param spindle prointer to a \a spindle_info_t struct.
*/
typedef void (*spindle_enumerate_callback_ptr)(spindle_info_t *spindle);
typedef void (*spindle_enumerate_callback_ptr)(spindle_info_t *spindle, void *data);
void spindle_set_override (spindle_ptrs_t *spindle, override_t speed_override);
@@ -281,7 +281,7 @@ spindle_id_t spindle_get_default (void);
spindle_num_t spindle_enable (spindle_id_t spindle_id);
bool spindle_enumerate_spindles (spindle_enumerate_callback_ptr callback);
bool spindle_enumerate_spindles (spindle_enumerate_callback_ptr callback, void *data);
//