gcode_parse.h: remove unused union.
The idea was to clear all flags with one variable, but actually, this raises the binary size instead of lowering it. So, the code in gcode_parse.c, line 354, is probably as fast as it can get.
This commit is contained in:
parent
0ba62800eb
commit
25aaafeff2
|
|
@ -23,7 +23,6 @@ typedef struct {
|
|||
|
||||
/// this holds all the possible data from a received command
|
||||
typedef struct {
|
||||
union {
|
||||
struct {
|
||||
uint8_t seen_G :1;
|
||||
uint8_t seen_M :1;
|
||||
|
|
@ -33,7 +32,6 @@ typedef struct {
|
|||
uint8_t seen_E :1;
|
||||
uint8_t seen_F :1;
|
||||
uint8_t seen_S :1;
|
||||
|
||||
uint8_t seen_P :1;
|
||||
uint8_t seen_T :1;
|
||||
uint8_t seen_N :1;
|
||||
|
|
@ -44,8 +42,6 @@ typedef struct {
|
|||
uint8_t option_e_relative :1; ///< same for e axis (M82/M83)
|
||||
uint8_t option_inches :1; ///< inches or millimeters?
|
||||
};
|
||||
uint16_t flags;
|
||||
};
|
||||
|
||||
uint8_t G; ///< G command number
|
||||
uint8_t M; ///< M command number
|
||||
|
|
|
|||
Loading…
Reference in New Issue