mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 23:21:54 +00:00 
			
		
		
		
	merge
This commit is contained in:
		| @@ -23,7 +23,7 @@ namespace esphome { | |||||||
| /// | /// | ||||||
| /// Example usage (1:1 mapping - climate enums): | /// Example usage (1:1 mapping - climate enums): | ||||||
| ///   // For enums with contiguous values starting at 0, no specialization needed! | ///   // For enums with contiguous values starting at 0, no specialization needed! | ||||||
| ///   using ClimateModeMask = FiniteSetMask<ClimateMode, 8>; | ///   using ClimateModeMask = FiniteSetMask<ClimateMode, CLIMATE_MODE_AUTO + 1>; | ||||||
| ///   ClimateModeMask modes({CLIMATE_MODE_HEAT, CLIMATE_MODE_COOL}); | ///   ClimateModeMask modes({CLIMATE_MODE_HEAT, CLIMATE_MODE_COOL}); | ||||||
| ///   if (modes.count(CLIMATE_MODE_HEAT)) { ... } | ///   if (modes.count(CLIMATE_MODE_HEAT)) { ... } | ||||||
| ///   for (auto mode : modes) { ... }  // Iterate over set bits | ///   for (auto mode : modes) { ... }  // Iterate over set bits | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user