Im pretty sure that on line 639 in espnow.c, there is an error, causing that logged channel where error happened is always 1 when we send only on current channel.
Or in better case, refactor everything in that function between lines 588 and 639 or maybe even split the code into multiple functions. Channel selection is done on multiple places so code is hard to follow and debug.
Im pretty sure that on line 639 in espnow.c, there is an error, causing that logged channel where error happened is always 1 when we send only on current channel.
I would at least change that to:
Or in better case, refactor everything in that function between lines 588 and 639 or maybe even split the code into multiple functions. Channel selection is done on multiple places so code is hard to follow and debug.