Fix state machine bug in serial input parser
This commit is contained in:
		
							parent
							
								
									445c52cdf4
								
							
						
					
					
						commit
						a43cb02ec9
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -243,9 +243,10 @@ int main() { | |||
| 
 | ||||
|             default: { | ||||
|                 if (b < header.size) { | ||||
|                     b++; | ||||
|                     body[b++]; | ||||
|                 } else if (b == header.size) { | ||||
|                     sum = c; | ||||
|                     b++; | ||||
|                 } else if (b == header.size + 1) { | ||||
|                     sum |= c << 8; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue