mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	[midea] Use c++17 constexpr and inline static in IrFollowMeData (#10002)
This commit is contained in:
		| @@ -54,15 +54,15 @@ class IrFollowMeData : public IrData { | ||||
|   void set_fahrenheit(bool val) { this->set_mask_(2, val, 32); } | ||||
|  | ||||
|  protected: | ||||
|   static const uint8_t MIN_TEMP_C = 0; | ||||
|   static const uint8_t MAX_TEMP_C = 37; | ||||
|   inline static constexpr uint8_t MIN_TEMP_C = 0; | ||||
|   inline static constexpr uint8_t MAX_TEMP_C = 37; | ||||
|  | ||||
|   // see | ||||
|   // https://github.com/crankyoldgit/IRremoteESP8266/blob/9bdf8abcb465268c5409db99dc83a26df64c7445/src/ir_Midea.h#L116 | ||||
|   static const uint8_t MIN_TEMP_F = 32; | ||||
|   inline static constexpr uint8_t MIN_TEMP_F = 32; | ||||
|   // see | ||||
|   // https://github.com/crankyoldgit/IRremoteESP8266/blob/9bdf8abcb465268c5409db99dc83a26df64c7445/src/ir_Midea.h#L117 | ||||
|   static const uint8_t MAX_TEMP_F = 99; | ||||
|   inline static constexpr uint8_t MAX_TEMP_F = 99; | ||||
| }; | ||||
|  | ||||
| class IrSpecialData : public IrData { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user