mirror of
https://github.com/synthetos/g2.git
synced 2026-09-26 17:23:40 +08:00
checkpoint
This commit is contained in:
@@ -533,7 +533,7 @@ stat_t cm_deferred_write_callback()
|
||||
nvObj_t nv;
|
||||
for (uint8_t i=1; i<=COORDS; i++) {
|
||||
for (uint8_t j=0; j<AXES; j++) {
|
||||
sprintf((char *)nv.token, "g%2d%c", 53+i, ("xyzabc")[j]);
|
||||
sprintf((char *)nv.token, "g%2d%c", 53+i, ("xyzuvwabc")[j]);
|
||||
nv.index = nv_get_index((const char *)"", nv.token);
|
||||
nv.value_flt = cm->coord_offset[i][j];
|
||||
nv_persist(&nv); // Note: nv_persist() only writes values that have changed
|
||||
|
||||
+6
-4
@@ -79,10 +79,12 @@
|
||||
* - a system group is identified by "sys" and contains a collection of otherwise unrelated values
|
||||
*
|
||||
* "Uber-groups" are groups of groups that are only used for text-mode printing - e.g.
|
||||
* - group of all axes groups
|
||||
* - group of all motor groups
|
||||
* - group of all offset groups
|
||||
* - group of all groups
|
||||
* - group of all motor groups (m)
|
||||
* - group of all axes groups (q)
|
||||
* - group of all offset groups (o)
|
||||
* - group of all digital input groups (di)
|
||||
* - group of all digital output groups (do)
|
||||
* - group of all groups ($)
|
||||
*/
|
||||
/* --- Making changes and adding new values
|
||||
*
|
||||
|
||||
@@ -1657,7 +1657,7 @@ static stat_t _do_motors(nvObj_t *nv) // print parameters for all motor groups
|
||||
|
||||
static stat_t _do_axes(nvObj_t *nv) // print parameters for all axis groups
|
||||
{
|
||||
char list[][TOKEN_LEN+1] = {"x","y","z","a","b","c",""}; // must have a terminating element
|
||||
char list[][TOKEN_LEN+1] = {"x","y","z","u","v","w","a","b","c",""}; // must have a terminating element
|
||||
return (_do_group_list(nv, list));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user