mirror of
https://github.com/esphome/esphome.git
synced 2025-10-29 14:13:51 +00:00
fix compile
This commit is contained in:
@@ -3,8 +3,7 @@
|
|||||||
#include "esphome/core/enum_bitmask.h"
|
#include "esphome/core/enum_bitmask.h"
|
||||||
#include "climate_mode.h"
|
#include "climate_mode.h"
|
||||||
|
|
||||||
namespace esphome {
|
namespace esphome::climate {
|
||||||
namespace climate {
|
|
||||||
|
|
||||||
// Type aliases for climate enum bitmasks
|
// Type aliases for climate enum bitmasks
|
||||||
// These replace std::set<EnumType> to eliminate red-black tree overhead
|
// These replace std::set<EnumType> to eliminate red-black tree overhead
|
||||||
@@ -21,8 +20,7 @@ using ClimateFanModeMask = EnumBitmask<ClimateFanMode, CLIMATE_FAN_MODE_BITMASK_
|
|||||||
using ClimateSwingModeMask = EnumBitmask<ClimateSwingMode, CLIMATE_SWING_MODE_BITMASK_SIZE>;
|
using ClimateSwingModeMask = EnumBitmask<ClimateSwingMode, CLIMATE_SWING_MODE_BITMASK_SIZE>;
|
||||||
using ClimatePresetMask = EnumBitmask<ClimatePreset, CLIMATE_PRESET_BITMASK_SIZE>;
|
using ClimatePresetMask = EnumBitmask<ClimatePreset, CLIMATE_PRESET_BITMASK_SIZE>;
|
||||||
|
|
||||||
} // namespace climate
|
} // namespace esphome::climate
|
||||||
} // namespace esphome
|
|
||||||
|
|
||||||
// Template specializations for enum-to-bit conversions
|
// Template specializations for enum-to-bit conversions
|
||||||
// All climate enums are sequential starting from 0, so conversions are trivial
|
// All climate enums are sequential starting from 0, so conversions are trivial
|
||||||
|
|||||||
@@ -5,8 +5,7 @@
|
|||||||
#include "climate_mode_bitmask.h"
|
#include "climate_mode_bitmask.h"
|
||||||
#include "esphome/core/helpers.h"
|
#include "esphome/core/helpers.h"
|
||||||
|
|
||||||
namespace esphome {
|
namespace esphome::climate {
|
||||||
namespace climate {
|
|
||||||
|
|
||||||
// Lightweight linear search for small vectors (1-20 items)
|
// Lightweight linear search for small vectors (1-20 items)
|
||||||
// Avoids std::find template overhead
|
// Avoids std::find template overhead
|
||||||
@@ -18,8 +17,7 @@ template<typename T> inline bool vector_contains(const std::vector<T> &vec, cons
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace climate
|
} // namespace esphome::climate
|
||||||
} // namespace esphome
|
|
||||||
|
|
||||||
namespace esphome {
|
namespace esphome {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user