mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	uppercase
This commit is contained in:
		| @@ -106,8 +106,8 @@ uint8_t &SplitBuffer::operator[](size_t index) { | |||||||
|   if (index >= this->total_length_) { |   if (index >= this->total_length_) { | ||||||
|     ESP_LOGE(TAG, "SplitBuffer index %zu out of bounds (size: %zu)", index, this->total_length_); |     ESP_LOGE(TAG, "SplitBuffer index %zu out of bounds (size: %zu)", index, this->total_length_); | ||||||
|     // Return reference to a static dummy byte to avoid crash |     // Return reference to a static dummy byte to avoid crash | ||||||
|     static uint8_t dummy = 0; |     static uint8_t DUMMY = 0; | ||||||
|     return dummy; |     return DUMMY; | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   size_t buffer_index = index / this->buffer_size_; |   size_t buffer_index = index / this->buffer_size_; | ||||||
| @@ -120,8 +120,8 @@ const uint8_t &SplitBuffer::operator[](size_t index) const { | |||||||
|   if (index >= this->total_length_) { |   if (index >= this->total_length_) { | ||||||
|     ESP_LOGE(TAG, "SplitBuffer index %zu out of bounds (size: %zu)", index, this->total_length_); |     ESP_LOGE(TAG, "SplitBuffer index %zu out of bounds (size: %zu)", index, this->total_length_); | ||||||
|     // Return reference to a static dummy byte to avoid crash |     // Return reference to a static dummy byte to avoid crash | ||||||
|     static const uint8_t dummy = 0; |     static const uint8_t DUMMY = 0; | ||||||
|     return dummy; |     return DUMMY; | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   size_t buffer_index = index / this->buffer_size_; |   size_t buffer_index = index / this->buffer_size_; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user