diff --git a/esphome/components/lora/lora.cpp b/esphome/components/lora/lora.cpp index 90e9cd989e..90aa934dfd 100644 --- a/esphome/components/lora/lora.cpp +++ b/esphome/components/lora/lora.cpp @@ -126,7 +126,7 @@ void Lora::dump_config() { }; bool Lora::sendMessage(std::string message) { - uint32 size = message.length(); + uint8_t size = message.length(); char messageFixed[size]; memcpy(messageFixed, message.c_str(), size); if (size > MAX_SIZE_TX_PACKET + 2) {