1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-26 15:12:21 +01:00

fix: change lamp_name_cstr type to unsigned char pointer in add_timer method

This commit is contained in:
Oliver Kleinecke
2025-02-18 13:11:05 +01:00
parent 8e78f1b631
commit 9669b5a51a

View File

@@ -230,7 +230,7 @@ std::array<bool, 16> DynamicLampComponent::get_lamp_outputs_by_name(std::string
bool DynamicLampComponent::add_timer(std::string lamp_name, bool timer_active, uint8_t mode, uint8_t hour,
uint8_t minute, bool monday, bool tuesday, bool wednesday, bool thursday,
bool friday, bool saturday, bool sunday) {
char const *lamp_name_cstr = lamp_name.c_str();
const unsigned char* lamp_name_cstr = lamp_name.c_str();
DynamicLampTimer new_timer;
new_timer.active = timer_active;
new_timer.mode = mode;