Skip to content

Commit adbcc19

Browse files
committed
build 339.01 fixes G2 pocket issue
1 parent b66db6c commit adbcc19

18 files changed

+7580
-5372
lines changed

firmware/arc.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
#include "planner.h"
4343
#include "kinematics.h"
4444

45-
struct arArcSingleton { // persistent planner and runtime variables
45+
struct arArcSingleton { // persistent planner and runtime variables
4646
uint8_t run_state; // runtime state machine sequence
4747
uint32_t linenum; // gcode line number (Nxxxxx)
4848

@@ -183,11 +183,11 @@ void ar_abort_arc()
183183
}
184184

185185
/*****************************************************************************
186-
* Canonical Machining arc fucntions (arc prep for planning and runtime)
186+
* Canonical Machining arc functions (arc prep for planning and runtime)
187187
* cm_arc_feed() - entry point for arc prep
188188
* _compute_center_arc() - compute arc from I and J (arc center point)
189-
* _get_arc_radius() - compute arc center (offset) from radius.
190-
* _get_arc_time()
189+
* _get_arc_radius() - compute arc center (offset) from radius.
190+
* _get_arc_time() - compute time to complete arc at current feed rate
191191
*/
192192
uint8_t cm_arc_feed(double target[], double flags[],// arc endpoints
193193
double i, double j, double k, // offsets

firmware/canonical_machine.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ uint8_t cm_set_path_control(uint8_t mode)
627627
/*
628628
* Machining Functions (4.3.6)
629629
*
630-
* cm_arc_feed() - see plan_arc.c
630+
* cm_arc_feed() - see arc.c
631631
* cm_dwell() - G4, P parameter (seconds)
632632
* cm_straight_feed() - G1
633633
*/

firmware/config.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1268,7 +1268,7 @@ static uint8_t _set_defa(cmdObj *cmd)
12681268
}
12691269
cm_set_units_mode(MILLIMETERS); // must do init in MM mode
12701270

1271-
fprintf_P(stderr,PSTR("\n#### Initializing configs to default values ####\n"));
1271+
fprintf_P(stderr,PSTR(INIT_CONFIGURATION_MESSAGE)); // see settings.h & sub-headers
12721272
for (cmd->index=0; cmd->index<CMD_INDEX_END_SINGLES; cmd->index++) {
12731273
if (strstr(DONT_INITIALIZE, cmd_get_token(cmd->index, cmd->token)) != NULL) continue;
12741274
cmd->value = (double)pgm_read_float(&cfgArray[cmd->index].def_value);
@@ -1307,9 +1307,6 @@ uint8_t cfg_config_parser(char *str)
13071307
return (TG_OK);
13081308
}
13091309

1310-
1311-
1312-
13131310
/****************************************************************************
13141311
* _parse_config_string() - parse a command line
13151312
*/

firmware/controller.c

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -394,28 +394,6 @@ static void _prompt_without_message()
394394
} else {
395395
fprintf_P(stderr, PSTR("%S%S"), pr1, pr_mm);
396396
}
397-
398-
/*
399-
//##################### BEGIN DIAGNOSTIC #######################
400-
fprintf_P(stderr,PSTR("Programmed X =[%1.3f] "),cm_get_runtime_work_position(X));
401-
// 100 is step/mm=( 360*micro_step/(step angle * travel_per_revolution)) 360*1/(0.72*5)=100
402-
double x_factor = (360 * cfg.m[X].microsteps / (cfg.m[X].step_angle * cfg.m[X].travel_rev));
403-
fprintf_P(stderr,PSTR("Real=[%1.3f] mm\n"),x_cnt/x_factor);
404-
// fprintf_P(stderr,PSTR("Real=[%1.3f] mm\n"),x_cnt/100);
405-
406-
fprintf_P(stderr,PSTR("Programmed Y =[%1.3f] "),cm_get_runtime_work_position(Y));
407-
double y_factor = (360 * cfg.m[Y].microsteps / (cfg.m[Y].step_angle * cfg.m[Y].travel_rev));
408-
fprintf_P(stderr,PSTR("Real=[%1.3f] mm\n"),y_cnt/y_factor);
409-
// fprintf_P(stderr,PSTR("Real=[%1.3f] mm\n"),y_cnt/100);
410-
411-
fprintf_P(stderr,PSTR("Programmed Z =[%1.3f] "),cm_get_runtime_work_position(Z));
412-
double z_factor = (360 * cfg.m[Z].microsteps / (cfg.m[Z].step_angle * cfg.m[Z].travel_rev));
413-
fprintf_P(stderr,PSTR("Real=[%1.3f] mm\n"),z_cnt/z_factor);
414-
// fprintf_P(stderr,PSTR("Real=[%1.3f] mm\n"),z_cnt/100);
415-
*/
416-
417-
//##################### EMD DIAGNOSTIC #######################
418-
419397
}
420398

421399
/**** Input source controls ****

firmware/default/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ COMMON = -mmcu=$(MCU)
1515

1616
## Compile options common for all C compilation units.
1717
CFLAGS = $(COMMON)
18-
CFLAGS += -Wall -gdwarf-2 -std=gnu99 -DF_CPU=32000000UL -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums
18+
CFLAGS += -Wall -gdwarf-2 -std=gnu99 -DF_CPU=32000000UL -O0 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums
1919
CFLAGS += -MD -MP -MT $(*F).o -MF dep/$(@F).d
2020

2121
## Assembly specific flags

0 commit comments

Comments
 (0)