Skip to content

Commit 0757a6e

Browse files
committed
fix: Added missing const
1 parent efff2b3 commit 0757a6e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

components/esp-box/include/esp-box.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ class EspBox : public BaseComponent {
200200
/// \note This method is designed to be used by the display driver
201201
/// \note This method queues the data to be written to the LCD, only blocking
202202
/// if there is an ongoing SPI transaction
203-
void write_command(uint8_t command, std::span<uint8_t> parameters, uint32_t user_data);
203+
void write_command(uint8_t command, std::span<const uint8_t> parameters, uint32_t user_data);
204204

205205
/// Write a frame to the LCD
206206
/// \param x The x coordinate

components/esp-box/src/video.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ void EspBox::lcd_wait_lines() {
134134
}
135135
}
136136

137-
void EspBox::write_command(uint8_t command, std::span<uint8_t> parameters, uint32_t user_data) {
137+
void EspBox::write_command(uint8_t command, std::span<const uint8_t> parameters,
138+
uint32_t user_data) {
138139
lcd_wait_lines();
139140
memset(&trans[0], 0, sizeof(spi_transaction_t));
140141
memset(&trans[1], 0, sizeof(spi_transaction_t));

0 commit comments

Comments
 (0)