|
@@ -289,7 +289,7 @@ void loop()
|
289
|
289
|
}
|
290
|
290
|
|
291
|
291
|
|
292
|
|
-inline void get_command()
|
|
292
|
+FORCE_INLINE void get_command()
|
293
|
293
|
{
|
294
|
294
|
while( MSerial.available() > 0 && buflen < BUFSIZE) {
|
295
|
295
|
serial_char = MSerial.read();
|
|
@@ -436,20 +436,20 @@ inline void get_command()
|
436
|
436
|
}
|
437
|
437
|
|
438
|
438
|
|
439
|
|
-inline float code_value()
|
|
439
|
+FORCE_INLINE float code_value()
|
440
|
440
|
{
|
441
|
441
|
return (strtod(&cmdbuffer[bufindr][strchr_pointer - cmdbuffer[bufindr] + 1], NULL));
|
442
|
442
|
}
|
443
|
|
-inline long code_value_long()
|
|
443
|
+FORCE_INLINE long code_value_long()
|
444
|
444
|
{
|
445
|
445
|
return (strtol(&cmdbuffer[bufindr][strchr_pointer - cmdbuffer[bufindr] + 1], NULL, 10));
|
446
|
446
|
}
|
447
|
|
-inline bool code_seen(char code_string[]) //Return True if the string was found
|
|
447
|
+FORCE_INLINE bool code_seen(char code_string[]) //Return True if the string was found
|
448
|
448
|
{
|
449
|
449
|
return (strstr(cmdbuffer[bufindr], code_string) != NULL);
|
450
|
450
|
}
|
451
|
451
|
|
452
|
|
-inline bool code_seen(char code)
|
|
452
|
+FORCE_INLINE bool code_seen(char code)
|
453
|
453
|
{
|
454
|
454
|
strchr_pointer = strchr(cmdbuffer[bufindr], code);
|
455
|
455
|
return (strchr_pointer != NULL); //Return True if a character was found
|
|
@@ -481,7 +481,7 @@ inline bool code_seen(char code)
|
481
|
481
|
endstops_hit_on_purpose();\
|
482
|
482
|
}
|
483
|
483
|
|
484
|
|
-inline void process_commands()
|
|
484
|
+FORCE_INLINE void process_commands()
|
485
|
485
|
{
|
486
|
486
|
unsigned long codenum; //throw away variable
|
487
|
487
|
char *starpos = NULL;
|
|
@@ -1075,7 +1075,7 @@ void ClearToSend()
|
1075
|
1075
|
SERIAL_PROTOCOLLNPGM("ok");
|
1076
|
1076
|
}
|
1077
|
1077
|
|
1078
|
|
-inline void get_coordinates()
|
|
1078
|
+FORCE_INLINE void get_coordinates()
|
1079
|
1079
|
{
|
1080
|
1080
|
for(int8_t i=0; i < NUM_AXIS; i++) {
|
1081
|
1081
|
if(code_seen(axis_codes[i])) destination[i] = (float)code_value() + (axis_relative_modes[i] || relative_mode)*current_position[i];
|
|
@@ -1087,7 +1087,7 @@ inline void get_coordinates()
|
1087
|
1087
|
}
|
1088
|
1088
|
}
|
1089
|
1089
|
|
1090
|
|
-inline void get_arc_coordinates()
|
|
1090
|
+FORCE_INLINE void get_arc_coordinates()
|
1091
|
1091
|
{
|
1092
|
1092
|
get_coordinates();
|
1093
|
1093
|
if(code_seen('I')) offset[0] = code_value();
|