All static code analyis comments fixed, only TODOs are open
This commit is contained in:
		@@ -115,13 +115,13 @@ long getLastMoisture(int plantId)
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
long getDistance(){
 | 
					long getDistance() {
 | 
				
			||||||
  unsigned int distance;
 | 
					  byte startByte, h_data, l_data, sum;
 | 
				
			||||||
  byte startByte, h_data, l_data, sum = 0;
 | 
					 | 
				
			||||||
  byte buf[3];
 | 
					  byte buf[3];
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
  startByte = (byte)Serial.read();
 | 
					  startByte = (byte)Serial.read();
 | 
				
			||||||
  if(startByte == 255){
 | 
					  if(startByte == 255) {
 | 
				
			||||||
 | 
					    unsigned int distance;
 | 
				
			||||||
    Serial.readBytes(buf, 3);
 | 
					    Serial.readBytes(buf, 3);
 | 
				
			||||||
    h_data = buf[0];
 | 
					    h_data = buf[0];
 | 
				
			||||||
    l_data = buf[1];
 | 
					    l_data = buf[1];
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user