Update ebyte_lora_component.cpp

This commit is contained in:
Daniël Koek 2024-10-04 11:20:10 +01:00
parent db2f346122
commit 690b0c5f36

View file

@ -509,6 +509,7 @@ void EbyteLoraComponent::process_(uint8_t *buf, const size_t len) {
} }
}; };
void EbyteLoraComponent::loop() { void EbyteLoraComponent::loop() {
this->store_.can_send = !this->pin_aux_->digital_read();
if (auto len = this->available()) { if (auto len = this->available()) {
uint8_t buf[len]; uint8_t buf[len];
this->read_array(buf, len); this->read_array(buf, len);