mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	fix: negative temperatures on PMS5003T sensors (#6100)
This commit is contained in:
		
				
					committed by
					
						 Keith Burzinski
						Keith Burzinski
					
				
			
			
				
	
			
			
			
						parent
						
							354314dbf3
						
					
				
				
					commit
					4e5534850c
				
			| @@ -279,7 +279,7 @@ void PMSX003Component::parse_data_() { | |||||||
|       // Note the pm particles 50um & 100um are not returned, |       // Note the pm particles 50um & 100um are not returned, | ||||||
|       // as PMS5003T uses those data values for temperature and humidity. |       // as PMS5003T uses those data values for temperature and humidity. | ||||||
|  |  | ||||||
|       float temperature = this->get_16_bit_uint_(24) / 10.0f; |       float temperature = (int16_t) this->get_16_bit_uint_(24) / 10.0f; | ||||||
|       float humidity = this->get_16_bit_uint_(26) / 10.0f; |       float humidity = this->get_16_bit_uint_(26) / 10.0f; | ||||||
|  |  | ||||||
|       ESP_LOGD(TAG, |       ESP_LOGD(TAG, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user