Update ebyte_lora_component.cpp

This commit is contained in:
Daniël Koek 2024-06-03 15:18:48 +01:00
parent 17e56598c7
commit 443c155cdd

View file

@ -415,9 +415,9 @@ void EbyteLoraComponent::loop() {
}
// only configs with switches should sent too
#ifdef USE_SWITCH
ESP_LOGD(TAG, "Got switch info, making sure it is itself");
// Make sure it is not itself
if (network_id != data[1]) {
ESP_LOGD(TAG, "Got switch info to process");
// last data bit is rssi
for (int i = 2; i < data.size() - 1; i = i + 2) {
uint8_t pin = data[i];