@@ -1,7 +1,7 @@
 | 
				
			|||||||
variables:
 | 
					variables:
 | 
				
			||||||
  SW_KERNEL: "0"
 | 
					  SW_KERNEL: "0"
 | 
				
			||||||
  SW_MAJOR: "1"
 | 
					  SW_MAJOR: "1"
 | 
				
			||||||
  SW_MINOR: "8"
 | 
					  SW_MINOR: "9"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
before_script:
 | 
					before_script:
 | 
				
			||||||
  - "echo $CI_BUILD_ID"
 | 
					  - "echo $CI_BUILD_ID"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -30,7 +30,7 @@ static void parse(const char *buffer, unsigned int len)
 | 
				
			|||||||
	struct list_node *it = shell_object.command_list.front;
 | 
						struct list_node *it = shell_object.command_list.front;
 | 
				
			||||||
	while(it != NULL) {
 | 
						while(it != NULL) {
 | 
				
			||||||
		struct command *cmd = (struct command *)it->data;
 | 
							struct command *cmd = (struct command *)it->data;
 | 
				
			||||||
		if(strstr(buffer, cmd->command)) {
 | 
							if(0 == strncmp(buffer, cmd->command, strlen(cmd->command))) {
 | 
				
			||||||
			cmd->command_callback(buffer);
 | 
								cmd->command_callback(buffer);
 | 
				
			||||||
			return;
 | 
								return;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user