mirror of
https://github.com/esphome/esphome.git
synced 2024-11-25 00:18:11 +01:00
Update lora.cpp
This commit is contained in:
parent
895a90bdc8
commit
8922ab51d7
1 changed files with 2 additions and 1 deletions
|
@ -125,7 +125,8 @@ void Lora::dump_config() {
|
||||||
LOG_PIN("M1 Pin:", this->pin_m1);
|
LOG_PIN("M1 Pin:", this->pin_m1);
|
||||||
};
|
};
|
||||||
void Lora::digital_write(uint8_t pin, bool value) {
|
void Lora::digital_write(uint8_t pin, bool value) {
|
||||||
std::string message = str_snprintf("%02x%02x", 12, pin, value);
|
ESP_LOGD(TAG, "Starting to write message");
|
||||||
|
std::string message = str_snprintf("%02x%02x", 9, pin, value);
|
||||||
sendMessage(message);
|
sendMessage(message);
|
||||||
}
|
}
|
||||||
bool Lora::sendMessage(std::string message) {
|
bool Lora::sendMessage(std::string message) {
|
||||||
|
|
Loading…
Reference in a new issue