1
0
mirror of https://github.com/bdring/Grbl_Esp32.git synced 2025-08-31 10:01:48 +02:00

Fix possible reference to uninitialized variables

Fix errors about possible reference to uninitialized variables.
It seems necessary to check multiple commands for each modal group violation
This commit is contained in:
odaki
2019-05-06 13:48:32 +09:00
parent ade1aa3bd0
commit 099313ea51

View File

@@ -108,7 +108,7 @@ uint8_t gc_execute_line(char *line, uint8_t client)
perform initial error-checks for command word modal group violations, for any repeated
words, and for negative values set for the value words F, N, P, T, and S. */
uint8_t word_bit; // Bit-value for assigning tracking variables
uint8_t word_bit = 0; // Bit-value for assigning tracking variables
uint8_t char_counter;
char letter;
float value;
@@ -1402,4 +1402,4 @@ uint8_t gc_execute_line(char *line, uint8_t client)
group 9 = {M48, M49} enable/disable feed and speed override switches
group 10 = {G98, G99} return mode canned cycles
group 13 = {G61.1, G64} path control mode (G61 is supported)
*/
*/