Update lora.cpp

This commit is contained in:
Daniël Koek 2024-02-20 16:44:42 +00:00
parent 8922ab51d7
commit 0c0997198d

View file

@ -126,8 +126,8 @@ void Lora::dump_config() {
}; };
void Lora::digital_write(uint8_t pin, bool value) { void Lora::digital_write(uint8_t pin, bool value) {
ESP_LOGD(TAG, "Starting to write message"); ESP_LOGD(TAG, "Starting to write message");
std::string message = str_snprintf("%02x%02x", 9, pin, value); // std::string message = str_snprintf("%02x%02x", 9, pin, value);
sendMessage(message); sendMessage("bla");
} }
bool Lora::sendMessage(std::string message) { bool Lora::sendMessage(std::string message) {
uint8_t size = message.length(); uint8_t size = message.length();