Update lora.cpp

This commit is contained in:
Daniël Koek 2024-02-20 15:27:09 +00:00
parent aca94e5cc1
commit b43cb981d1

View file

@ -126,7 +126,7 @@ void Lora::dump_config() {
}; };
bool Lora::sendMessage(std::string message) { bool Lora::sendMessage(std::string message) {
uint32 size = message.length(); uint8_t size = message.length();
char messageFixed[size]; char messageFixed[size];
memcpy(messageFixed, message.c_str(), size); memcpy(messageFixed, message.c_str(), size);
if (size > MAX_SIZE_TX_PACKET + 2) { if (size > MAX_SIZE_TX_PACKET + 2) {