Skip to content

Commit f7278fa

Browse files
committed
Add logs
1 parent 4085a2f commit f7278fa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libraries/ESP_NOW/src/ESP32_NOW.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,11 @@ static void _esp_now_rx_cb(const esp_now_recv_info_t *info, const uint8_t *data,
114114
}
115115
//find the peer and call it's callback
116116
for(uint8_t i=0; i<ESP_NOW_MAX_TOTAL_PEER_NUM; i++){
117+
if(_esp_now_peers[i] != NULL){
118+
log_v("Checking peer " MACSTR, MAC2STR(_esp_now_peers[i]->addr()));
119+
}
117120
if(_esp_now_peers[i] != NULL && memcmp(info->src_addr, _esp_now_peers[i]->addr(), ESP_NOW_ETH_ALEN) == 0){
121+
log_v("Calling _onReceive");
118122
_esp_now_peers[i]->_onReceive(data, len, broadcast);
119123
return;
120124
}

0 commit comments

Comments
 (0)