Fix code_seen

char/string version was mixed
This commit is contained in:
Petr Ledvina 2018-07-17 17:53:30 +02:00
parent ef93de95d8
commit 48d6ebffd8

View File

@ -3258,8 +3258,8 @@ void process_commands()
if(code_seen("CRASH_DETECTED"))
{
uint8_t mask = 0;
if (code_seen("X")) mask |= X_AXIS_MASK;
if (code_seen("Y")) mask |= Y_AXIS_MASK;
if (code_seen('X')) mask |= X_AXIS_MASK;
if (code_seen('Y')) mask |= Y_AXIS_MASK;
crashdet_detected(mask);
}
else if(code_seen("CRASH_RECOVER"))
@ -4177,10 +4177,10 @@ void process_commands()
if (code_seen('X')) dimension_x = code_value();
if (code_seen('Y')) dimension_y = code_value();
if (code_seen('XP')) points_x = code_value();
if (code_seen('YP')) points_y = code_value();
if (code_seen('XO')) offset_x = code_value();
if (code_seen('YO')) offset_y = code_value();
if (code_seen("XP")) { strchr_pointer+=1; points_x = code_value(); }
if (code_seen("YP")) { strchr_pointer+=1; points_y = code_value(); }
if (code_seen("XO")) { strchr_pointer+=1; offset_x = code_value(); }
if (code_seen("YO")) { strchr_pointer+=1; offset_y = code_value(); }
bed_analysis(dimension_x,dimension_y,points_x,points_y,offset_x,offset_y);