mirror of
https://github.com/esphome/esphome.git
synced 2025-08-03 08:57:47 +00:00
no template
This commit is contained in:
parent
28620190f0
commit
d567533161
@ -311,8 +311,7 @@ struct RepeatedFieldMeta {
|
||||
};
|
||||
|
||||
// Binary search for field lookup - optimized for performance
|
||||
template<typename MetaType>
|
||||
inline const MetaType *find_field_binary(const MetaType *fields, uint8_t count, uint8_t field_id, uint8_t wire_type) {
|
||||
inline const FieldMeta *find_field_binary(const FieldMeta *fields, uint8_t count, uint8_t field_id, uint8_t wire_type) {
|
||||
uint8_t left = 0;
|
||||
uint8_t right = count;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user