mirror of
https://github.com/esphome/esphome.git
synced 2024-11-28 09:44:12 +01:00
Update lora.cpp
This commit is contained in:
parent
aca94e5cc1
commit
b43cb981d1
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue